コード例 #1
0
ファイル: Extension.java プロジェクト: HHSIDEAlab/hapi-fhir
 @Override
 public void setProperty(String name, Base value) throws FHIRException {
   if (name.equals("url")) this.url = castToUri(value); // UriType
   else if (name.equals("value[x]"))
     this.value = (org.hl7.fhir.dstu21.model.Type) value; // org.hl7.fhir.dstu21.model.Type
   else super.setProperty(name, value);
 }
コード例 #2
0
ファイル: Extension.java プロジェクト: HHSIDEAlab/hapi-fhir
 protected void listChildren(List<Property> childrenList) {
   super.listChildren(childrenList);
   childrenList.add(
       new Property(
           "url",
           "uri",
           "Source of the definition for the extension code - a logical name or a URL.",
           0,
           java.lang.Integer.MAX_VALUE,
           url));
   childrenList.add(
       new Property(
           "value[x]",
           "*",
           "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
           0,
           java.lang.Integer.MAX_VALUE,
           value));
 }