Пример #1
0
 protected void listChildren(List<Property> childrenList) {
   super.listChildren(childrenList);
   childrenList.add(
       new Property(
           "identifier",
           "Identifier",
           "Identifier associated with the package/container (usually a label affixed directly).",
           0,
           java.lang.Integer.MAX_VALUE,
           identifier));
   childrenList.add(
       new Property(
           "expiry",
           "dateTime",
           "When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.",
           0,
           java.lang.Integer.MAX_VALUE,
           expiry));
   childrenList.add(
       new Property(
           "quantity",
           "SimpleQuantity",
           "The amount of the substance.",
           0,
           java.lang.Integer.MAX_VALUE,
           quantity));
 }
Пример #2
0
 @Override
 public void setProperty(String name, Base value) throws FHIRException {
   if (name.equals("type"))
     this.type = new LinkageTypeEnumFactory().fromType(value); // Enumeration<LinkageType>
   else if (name.equals("resource")) this.resource = castToReference(value); // Reference
   else super.setProperty(name, value);
 }
Пример #3
0
 @Override
 public void setProperty(String name, Base value) throws FHIRException {
   if (name.equals("role")) this.role = castToCodeableConcept(value); // CodeableConcept
   else if (name.equals("member")) this.member = castToReference(value); // Reference
   else if (name.equals("period")) this.period = castToPeriod(value); // Period
   else super.setProperty(name, value);
 }
Пример #4
0
 protected void listChildren(List<Property> childrenList) {
   super.listChildren(childrenList);
   childrenList.add(
       new Property(
           "role",
           "CodeableConcept",
           "Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.",
           0,
           java.lang.Integer.MAX_VALUE,
           role));
   childrenList.add(
       new Property(
           "member",
           "Reference(Practitioner|RelatedPerson|Patient|Organization)",
           "The specific person or organization who is participating/expected to participate in the care team.",
           0,
           java.lang.Integer.MAX_VALUE,
           member));
   childrenList.add(
       new Property(
           "period",
           "Period",
           "Indicates when the specific member or organization did (or is intended to) come into effect and end.",
           0,
           java.lang.Integer.MAX_VALUE,
           period));
 }
Пример #5
0
 @Override
 public void setProperty(String name, Base value) throws FHIRException {
   if (name.equals("identifier")) this.identifier = castToIdentifier(value); // Identifier
   else if (name.equals("expiry")) this.expiry = castToDateTime(value); // DateTimeType
   else if (name.equals("quantity"))
     this.quantity = castToSimpleQuantity(value); // SimpleQuantity
   else super.setProperty(name, value);
 }
Пример #6
0
 @Override
 public void setProperty(int hash, String name, Base value) throws FHIRException {
   switch (hash) {
     case 3575610: // type
       this.type = new LinkageTypeEnumFactory().fromType(value); // Enumeration<LinkageType>
       break;
     case -341064690: // resource
       this.resource = castToReference(value); // Reference
       break;
     default:
       super.setProperty(hash, name, value);
   }
 }
Пример #7
0
 public StringBuilder appendFields(
     ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
   super.appendFields(locator, buffer, strategy);
   {
     ResourceReference theOther;
     theOther = this.getOther();
     strategy.appendField(locator, this, "other", buffer, theOther);
   }
   {
     LinkType theType;
     theType = this.getType();
     strategy.appendField(locator, this, "type", buffer, theType);
   }
   return buffer;
 }
 public StringBuilder appendFields(
     ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
   super.appendFields(locator, buffer, strategy);
   {
     ResourceReference thePerson;
     thePerson = this.getPerson();
     strategy.appendField(locator, this, "person", buffer, thePerson);
   }
   {
     CodeableConcept theRole;
     theRole = this.getRole();
     strategy.appendField(locator, this, "role", buffer, theRole);
   }
   return buffer;
 }
 public StringBuilder appendFields(
     ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
   super.appendFields(locator, buffer, strategy);
   {
     ResourceReference theBed;
     theBed = this.getBed();
     strategy.appendField(locator, this, "bed", buffer, theBed);
   }
   {
     Period thePeriod;
     thePeriod = this.getPeriod();
     strategy.appendField(locator, this, "period", buffer, thePeriod);
   }
   return buffer;
 }
Пример #10
0
 @Override
 public void setProperty(int hash, String name, Base value) throws FHIRException {
   switch (hash) {
     case 3506294: // role
       this.role = castToCodeableConcept(value); // CodeableConcept
       break;
     case -1077769574: // member
       this.member = castToReference(value); // Reference
       break;
     case -991726143: // period
       this.period = castToPeriod(value); // Period
       break;
     default:
       super.setProperty(hash, name, value);
   }
 }
Пример #11
0
 protected void listChildren(List<Property> childrenList) {
   super.listChildren(childrenList);
   childrenList.add(
       new Property(
           "quantity",
           "Ratio",
           "The amount of the ingredient in the substance - a concentration ratio.",
           0,
           java.lang.Integer.MAX_VALUE,
           quantity));
   childrenList.add(
       new Property(
           "substance",
           "Reference(Substance)",
           "Another substance that is a component of this substance.",
           0,
           java.lang.Integer.MAX_VALUE,
           substance));
 }
Пример #12
0
 protected void listChildren(List<Property> childrenList) {
   super.listChildren(childrenList);
   childrenList.add(
       new Property(
           "type",
           "code",
           "Distinguishes which item is \"source of truth\" (if any) and which items are no longer considered to be current representations.",
           0,
           java.lang.Integer.MAX_VALUE,
           type));
   childrenList.add(
       new Property(
           "resource",
           "Reference",
           "The resource instance being linked as part of the group.",
           0,
           java.lang.Integer.MAX_VALUE,
           resource));
 }
Пример #13
0
 @Override
 public void setProperty(String name, Base value) throws FHIRException {
   if (name.equals("quantity")) this.quantity = castToRatio(value); // Ratio
   else if (name.equals("substance")) this.substance = castToReference(value); // Reference
   else super.setProperty(name, value);
 }