/** @return {@link #code} (Describes the type of the issue.) */
 public CodeableConcept getCode() {
   if (this.code == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create OperationOutcomeIssueComponent.code");
     else if (Configuration.doAutoCreate()) this.code = new CodeableConcept(); // cc
   return this.code;
 }
 /**
  * @return {@link #patient} The actual object that is the target of the reference. The reference
  *     library doesn't populate this, but you can use it to hold the resource if you resolve it.
  *     (The person who this history concerns.)
  */
 public Patient getPatientTarget() {
   if (this.patientTarget == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create FamilyMemberHistory.patient");
     else if (Configuration.doAutoCreate()) this.patientTarget = new Patient(); // aa
   return this.patientTarget;
 }
 /**
  * @return {@link #name} (This will either be a name or a description. E.g. "Aunt Susan", "my
  *     cousin with the red hair".). This is the underlying object with id, value and extensions.
  *     The accessor "getName" gives direct access to the value
  */
 public StringType getNameElement() {
   if (this.name == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create FamilyMemberHistory.name");
     else if (Configuration.doAutoCreate()) this.name = new StringType(); // bb
   return this.name;
 }
Beispiel #4
0
 /**
  * @return {@link #system} (The identification of the system that provides the coded form of the
  *     unit.). This is the underlying object with id, value and extensions. The accessor
  *     "getSystem" gives direct access to the value
  */
 public UriType getSystemElement() {
   if (this.system == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create Quantity.system");
     else if (Configuration.doAutoCreate()) this.system = new UriType(); // bb
   return this.system;
 }
 /**
  * @return {@link #outcome} (Indicates what happened as a result of this condition. If the
  *     condition resulted in death, deceased date is captured on the relation.)
  */
 public CodeableConcept getOutcome() {
   if (this.outcome == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create FamilyMemberHistoryConditionComponent.outcome");
     else if (Configuration.doAutoCreate()) this.outcome = new CodeableConcept(); // cc
   return this.outcome;
 }
Beispiel #6
0
 /**
  * @return {@link #response} (Reference of a prior response to resource which is the target or
  *     subject of this action.)
  */
 public Reference getResponse() {
   if (this.response == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create ProcessRequest.response");
     else if (Configuration.doAutoCreate()) this.response = new Reference(); // cc
   return this.response;
 }
Beispiel #7
0
 /**
  * @return {@link #value} (The value of the measured amount. The value includes an implicit
  *     precision in the presentation of the value.). This is the underlying object with id, value
  *     and extensions. The accessor "getValue" gives direct access to the value
  */
 public DecimalType getValueElement() {
   if (this.value == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create Quantity.value");
     else if (Configuration.doAutoCreate()) this.value = new DecimalType(); // bb
   return this.value;
 }
  public static void main(final String[] pArgs) throws Exception {
    TreasuryYieldMulti tym = new TreasuryYieldMulti();

    // Here is an example of how to use multiple collections as the input to
    // a hadoop job, from within Java code directly.
    MultiCollectionSplitBuilder mcsb = new MultiCollectionSplitBuilder();
    mcsb.add(
            new MongoURI("mongodb://localhost:27017/mongo_hadoop.yield_historical.in"),
            (MongoURI) null, // authuri
            true, // notimeout
            (DBObject) null, // fields
            (DBObject) null, // sort
            (DBObject) null, // query
            false)
        .add(
            new MongoURI("mongodb://localhost:27017/mongo_hadoop.yield_historical.in"),
            (MongoURI) null, // authuri
            true, // notimeout
            (DBObject) null, // fields
            (DBObject) null, // sort
            new BasicDBObject("_id", new BasicDBObject("$gt", new Date(883440000000L))),
            false); // range query

    Configuration conf = new Configuration();
    conf.set(MultiMongoCollectionSplitter.MULTI_COLLECTION_CONF_KEY, mcsb.toJSON());
    conf.setSplitterClass(conf, MultiMongoCollectionSplitter.class);

    System.exit(ToolRunner.run(conf, new TreasuryYieldXMLConfig(), pArgs));
  }
Beispiel #9
0
 /**
  * @return {@link #reference} (A reference to supply which authenticates the process.). This is
  *     the underlying object with id, value and extensions. The accessor "getReference" gives
  *     direct access to the value
  */
 public StringType getReferenceElement() {
   if (this.reference == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create ProcessRequest.reference");
     else if (Configuration.doAutoCreate()) this.reference = new StringType(); // bb
   return this.reference;
 }
Beispiel #10
0
 /**
  * @return {@link #description} (Human-readable description of a specific desired objective of
  *     care.). This is the underlying object with id, value and extensions. The accessor
  *     "getDescription" gives direct access to the value
  */
 public StringType getDescriptionElement() {
   if (this.description == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create Goal.description");
     else if (Configuration.doAutoCreate()) this.description = new StringType(); // bb
   return this.description;
 }
Beispiel #11
0
 /**
  * @return {@link #status} (Indicates whether the goal has been reached and is still considered
  *     relevant.). This is the underlying object with id, value and extensions. The accessor
  *     "getStatus" gives direct access to the value
  */
 public Enumeration<GoalStatus> getStatusElement() {
   if (this.status == null)
     if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Goal.status");
     else if (Configuration.doAutoCreate())
       this.status = new Enumeration<GoalStatus>(new GoalStatusEnumFactory()); // bb
   return this.status;
 }
  private void serializeMetaTypes() {
    if (!context.supertypes.isEmpty()) {
      processingEnv.getMessager().printMessage(Kind.NOTE, "Serializing Supertypes");
      serialize(conf.getSupertypeSerializer(), context.supertypes.values());
    }

    if (!context.entityTypes.isEmpty()) {
      processingEnv.getMessager().printMessage(Kind.NOTE, "Serializing Entity types");
      serialize(conf.getEntitySerializer(), context.entityTypes.values());
    }

    if (!context.extensionTypes.isEmpty()) {
      processingEnv.getMessager().printMessage(Kind.NOTE, "Serializing Extension types");
      serialize(conf.getEmbeddableSerializer(), context.extensionTypes.values());
    }

    if (!context.embeddableTypes.isEmpty()) {
      processingEnv.getMessager().printMessage(Kind.NOTE, "Serializing Embeddable types");
      serialize(conf.getEmbeddableSerializer(), context.embeddableTypes.values());
    }

    if (!context.projectionTypes.isEmpty()) {
      processingEnv.getMessager().printMessage(Kind.NOTE, "Serializing Projection types");
      serialize(conf.getDTOSerializer(), context.projectionTypes.values());
    }
  }
  private static void checkConfiguration(final Configuration configuration)
      throws PwmUnrecoverableException {
    final String namingAttribute =
        configuration.getDefaultLdapProfile().readSettingAsString(PwmSetting.LDAP_NAMING_ATTRIBUTE);
    final List<FormConfiguration> formItems =
        configuration.readSettingAsForm(PwmSetting.GUEST_FORM);

    {
      boolean namingIsInForm = false;
      for (final FormConfiguration formItem : formItems) {
        if (namingAttribute.equalsIgnoreCase(formItem.getName())) {
          namingIsInForm = true;
        }
      }

      if (!namingIsInForm) {
        final String errorMsg =
            "ldap naming attribute '"
                + namingAttribute
                + "' is not in form configuration, but is required";
        final ErrorInformation errorInformation =
            new ErrorInformation(
                PwmError.ERROR_INVALID_CONFIG, errorMsg, new String[] {namingAttribute});
        throw new PwmUnrecoverableException(errorInformation);
      }
    }
  }
 /**
  * @return {@link #details} (Additional diagnostic information about the issue. Typically, this
  *     may be a description of how a value is erroneous, or a stck dump to help trace the
  *     issue.). This is the underlying object with id, value and extensions. The accessor
  *     "getDetails" gives direct access to the value
  */
 public StringType getDetailsElement() {
   if (this.details == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create OperationOutcomeIssueComponent.details");
     else if (Configuration.doAutoCreate()) this.details = new StringType(); // bb
   return this.details;
 }
Beispiel #15
0
 /**
  * @return {@link #organization} (The organization which is responsible for the action speccified
  *     in thise request.)
  */
 public Reference getOrganization() {
   if (this.organization == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create ProcessRequest.organization");
     else if (Configuration.doAutoCreate()) this.organization = new Reference(); // cc
   return this.organization;
 }
Beispiel #16
0
 /**
  * @return {@link #period} (A period of time during which the fulfilling resources would have been
  *     created.)
  */
 public Period getPeriod() {
   if (this.period == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create ProcessRequest.period");
     else if (Configuration.doAutoCreate()) this.period = new Period(); // cc
   return this.period;
 }
Beispiel #17
0
 /**
  * @return {@link #organization} The actual object that is the target of the reference. The
  *     reference library doesn't populate this, but you can use it to hold the resource if you
  *     resolve it. (The organization which is responsible for the action speccified in thise
  *     request.)
  */
 public Organization getOrganizationTarget() {
   if (this.organizationTarget == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create ProcessRequest.organization");
     else if (Configuration.doAutoCreate()) this.organizationTarget = new Organization(); // aa
   return this.organizationTarget;
 }
Beispiel #18
0
 /**
  * @return {@link #sequenceLinkId} (A service line number.). This is the underlying object with
  *     id, value and extensions. The accessor "getSequenceLinkId" gives direct access to the
  *     value
  */
 public IntegerType getSequenceLinkIdElement() {
   if (this.sequenceLinkId == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create ItemsComponent.sequenceLinkId");
     else if (Configuration.doAutoCreate()) this.sequenceLinkId = new IntegerType(); // bb
   return this.sequenceLinkId;
 }
Beispiel #19
0
 /**
  * @return {@link #nullify} (If true remove all history excluding audit.). This is the underlying
  *     object with id, value and extensions. The accessor "getNullify" gives direct access to the
  *     value
  */
 public BooleanType getNullifyElement() {
   if (this.nullify == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create ProcessRequest.nullify");
     else if (Configuration.doAutoCreate()) this.nullify = new BooleanType(); // bb
   return this.nullify;
 }
Beispiel #20
0
 /**
  * @return {@link #originalRuleset} (The style (standard) and version of the original material
  *     which was converted into this resource.)
  */
 public Coding getOriginalRuleset() {
   if (this.originalRuleset == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create ProcessRequest.originalRuleset");
     else if (Configuration.doAutoCreate()) this.originalRuleset = new Coding(); // cc
   return this.originalRuleset;
 }
Beispiel #21
0
 /**
  * @return {@link #unit} (A human-readable form of the unit.). This is the underlying object with
  *     id, value and extensions. The accessor "getUnit" gives direct access to the value
  */
 public StringType getUnitElement() {
   if (this.unit == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create Quantity.unit");
     else if (Configuration.doAutoCreate()) this.unit = new StringType(); // bb
   return this.unit;
 }
Beispiel #22
0
 /**
  * @return {@link #created} (The date when this resource was created.). This is the underlying
  *     object with id, value and extensions. The accessor "getCreated" gives direct access to the
  *     value
  */
 public DateTimeType getCreatedElement() {
   if (this.created == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create ProcessRequest.created");
     else if (Configuration.doAutoCreate()) this.created = new DateTimeType(); // bb
   return this.created;
 }
Beispiel #23
0
 /**
  * @return {@link #code} (A computer processable form of the unit in some unit representation
  *     system.). This is the underlying object with id, value and extensions. The accessor
  *     "getCode" gives direct access to the value
  */
 public CodeType getCodeElement() {
   if (this.code == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create Quantity.code");
     else if (Configuration.doAutoCreate()) this.code = new CodeType(); // bb
   return this.code;
 }
Beispiel #24
0
 /** @return {@link #target} (The organization which is target of the request.) */
 public Reference getTarget() {
   if (this.target == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create ProcessRequest.target");
     else if (Configuration.doAutoCreate()) this.target = new Reference(); // cc
   return this.target;
 }
 /** @return {@link #patient} (The person who this history concerns.) */
 public Reference getPatient() {
   if (this.patient == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create FamilyMemberHistory.patient");
     else if (Configuration.doAutoCreate()) this.patient = new Reference(); // cc
   return this.patient;
 }
Beispiel #26
0
 /**
  * @return {@link #provider} (The practitioner who is responsible for the action specified in
  *     thise request.)
  */
 public Reference getProvider() {
   if (this.provider == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create ProcessRequest.provider");
     else if (Configuration.doAutoCreate()) this.provider = new Reference(); // cc
   return this.provider;
 }
 /**
  * @return {@link #date} (The date (and possibly time) when the family member history was taken.).
  *     This is the underlying object with id, value and extensions. The accessor "getDate" gives
  *     direct access to the value
  */
 public DateTimeType getDateElement() {
   if (this.date == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create FamilyMemberHistory.date");
     else if (Configuration.doAutoCreate()) this.date = new DateTimeType(); // bb
   return this.date;
 }
Beispiel #28
0
 /**
  * @return {@link #provider} The actual object that is the target of the reference. The reference
  *     library doesn't populate this, but you can use it to hold the resource if you resolve it.
  *     (The practitioner who is responsible for the action specified in thise request.)
  */
 public Practitioner getProviderTarget() {
   if (this.providerTarget == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create ProcessRequest.provider");
     else if (Configuration.doAutoCreate()) this.providerTarget = new Practitioner(); // aa
   return this.providerTarget;
 }
 /**
  * @return {@link #relationship} (The type of relationship this person has to the patient (father,
  *     mother, brother etc.).)
  */
 public CodeableConcept getRelationship() {
   if (this.relationship == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create FamilyMemberHistory.relationship");
     else if (Configuration.doAutoCreate()) this.relationship = new CodeableConcept(); // cc
   return this.relationship;
 }
Beispiel #30
0
 /** @return {@link #network} (The identifier for a community of providers.) */
 public Identifier getNetwork() {
   if (this.network == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create Coverage.network");
     else if (Configuration.doAutoCreate()) this.network = new Identifier(); // cc
   return this.network;
 }