*/
- public CodeDt getUse() {
+ public BoundCodeDt getUse() {
if (myUse == null) {
- myUse = new CodeDt();
+ myUse = new BoundCodeDt(AddressUseEnum.VALUESET_BINDER);
}
return myUse;
}
@@ -87,11 +89,23 @@ public class AddressDt extends BaseElement implements ICompositeDatatype {
* The purpose of this address
*
*/
- public void setUse(CodeDt theValue) {
+ public void setUse(BoundCodeDt theValue) {
myUse = theValue;
}
-
-
+
+ /**
+ * Sets the value(s) for use (home | work | temp | old - purpose of this address)
+ *
+ *
+ * Definition:
+ * The purpose of this address
+ *
+ */
+ public void setUse(AddressUseEnum theValue) {
+ getUse().setValueAsEnum(theValue);
+ }
+
+
/**
* Gets the value(s) for text (Text representation of the address).
* creating it if it does
@@ -120,8 +134,8 @@ public class AddressDt extends BaseElement implements ICompositeDatatype {
public void setText(StringDt theValue) {
myText = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for text (Text representation of the address)
*
*
@@ -163,8 +177,8 @@ P.O. Box number, delivery hints, and similar address information
public void setLine(List theValue) {
myLine = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for line (Street name, number, direction & P.O. Box etc )
*
*
@@ -208,8 +222,8 @@ P.O. Box number, delivery hints, and similar address information
public void setCity(StringDt theValue) {
myCity = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for city (Name of city, town etc.)
*
*
@@ -249,8 +263,8 @@ P.O. Box number, delivery hints, and similar address information
public void setState(StringDt theValue) {
myState = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for state (Sub-unit of country (abreviations ok))
*
*
@@ -290,8 +304,8 @@ P.O. Box number, delivery hints, and similar address information
public void setZip(StringDt theValue) {
myZip = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for zip (Postal code for area)
*
*
@@ -331,8 +345,8 @@ P.O. Box number, delivery hints, and similar address information
public void setCountry(StringDt theValue) {
myCountry = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for country (Country (can be ISO 3166 3 letter code))
*
*
@@ -372,8 +386,8 @@ P.O. Box number, delivery hints, and similar address information
public void setPeriod(PeriodDt theValue) {
myPeriod = theValue;
}
-
-
+
+
}
\ No newline at end of file
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/AttachmentDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/AttachmentDt.java
similarity index 86%
rename from hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/AttachmentDt.java
rename to hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/AttachmentDt.java
index 971e6b9cef6..9e78de13f57 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/AttachmentDt.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/AttachmentDt.java
@@ -1,10 +1,15 @@
-package ca.uhn.fhir.model.primitive;
+package ca.uhn.fhir.model.dstu.composite;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
+import ca.uhn.fhir.model.primitive.Base64BinaryDt;
+import ca.uhn.fhir.model.primitive.CodeDt;
+import ca.uhn.fhir.model.primitive.IntegerDt;
+import ca.uhn.fhir.model.primitive.StringDt;
+import ca.uhn.fhir.model.primitive.UriDt;
@DatatypeDef(name="Attachment")
public class AttachmentDt extends BaseElement implements ICompositeDatatype {
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/CodeableConceptDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/CodeableConceptDt.java
new file mode 100644
index 00000000000..b89541fc55d
--- /dev/null
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/CodeableConceptDt.java
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+package ca.uhn.fhir.model.dstu.composite;
+
+import java.util.*;
+import ca.uhn.fhir.model.api.*;
+import ca.uhn.fhir.model.api.annotation.*;
+import ca.uhn.fhir.model.primitive.*;
+
+/**
+ * HAPI/FHIR CodeableConcept Datatype
+ * (Concept - reference to a terminology or just text)
+ *
+ *
+ * Definition:
+ * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text
+ *
+ *
+ *
+ * Requirements:
+ * This is a common pattern in healthcare - a concept that may be defined by one or more codes from formal definitions including LOINC and SNOMED CT, and/or defined by the provision of text that captures a human sense of the concept
+ *
+ */
+@DatatypeDef(name="CodeableConcept")
+public class CodeableConceptDt extends BaseElement implements ICompositeDatatype {
+
+ @Child(name="coding", type=CodingDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
+ private List myCoding;
+
+ @Child(name="text", type=StringDt.class, order=1, min=0, max=1)
+ private StringDt myText;
+
+ /**
+ * Gets the value(s) for coding (Code defined by a terminology system ).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * A reference to a code defined by a terminology system
+ *
+ */
+ public List getCoding() {
+ if (myCoding == null) {
+ myCoding = new ArrayList();
+ }
+ return myCoding;
+ }
+
+ /**
+ * Sets the value(s) for coding (Code defined by a terminology system )
+ *
+ *
+ * Definition:
+ * A reference to a code defined by a terminology system
+ *
+ */
+ public void setCoding(List theValue) {
+ myCoding = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for text (Plain text representation of the concept).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user
+ *
+ */
+ public StringDt getText() {
+ if (myText == null) {
+ myText = new StringDt();
+ }
+ return myText;
+ }
+
+ /**
+ * Sets the value(s) for text (Plain text representation of the concept)
+ *
+ *
+ * Definition:
+ * A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user
+ *
+ */
+ public void setText(StringDt theValue) {
+ myText = theValue;
+ }
+
+ /**
+ * Sets the value(s) for text (Plain text representation of the concept)
+ *
+ *
+ * Definition:
+ * A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user
+ *
+ */
+ public void setText( String theString) {
+ myText = new StringDt(theString);
+ }
+
+
+
+}
\ No newline at end of file
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/CodingDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/CodingDt.java
new file mode 100644
index 00000000000..cc572b63d85
--- /dev/null
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/CodingDt.java
@@ -0,0 +1,273 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+package ca.uhn.fhir.model.dstu.composite;
+
+import ca.uhn.fhir.model.api.BaseElement;
+import ca.uhn.fhir.model.api.ICompositeDatatype;
+import ca.uhn.fhir.model.api.ResourceReference;
+import ca.uhn.fhir.model.api.annotation.Child;
+import ca.uhn.fhir.model.api.annotation.ChildResource;
+import ca.uhn.fhir.model.api.annotation.DatatypeDef;
+import ca.uhn.fhir.model.dstu.resource.ValueSet;
+import ca.uhn.fhir.model.primitive.BooleanDt;
+import ca.uhn.fhir.model.primitive.CodeDt;
+import ca.uhn.fhir.model.primitive.StringDt;
+import ca.uhn.fhir.model.primitive.UriDt;
+
+/**
+ * HAPI/FHIR Coding Datatype
+ * (A reference to a code defined by a terminology system )
+ *
+ *
+ * Definition:
+ * A reference to a code defined by a terminology system
+ *
+ *
+ *
+ * Requirements:
+ * References to codes are very common in healthcare models
+ *
+ */
+@DatatypeDef(name="Coding")
+public class CodingDt extends BaseElement implements ICompositeDatatype {
+
+ @Child(name="system", type=UriDt.class, order=0, min=0, max=1)
+ private UriDt mySystem;
+
+ @Child(name="version", type=StringDt.class, order=1, min=0, max=1)
+ private StringDt myVersion;
+
+ @Child(name="code", type=CodeDt.class, order=2, min=0, max=1)
+ private CodeDt myCode;
+
+ @Child(name="display", type=StringDt.class, order=3, min=0, max=1)
+ private StringDt myDisplay;
+
+ @Child(name="primary", type=BooleanDt.class, order=4, min=0, max=1)
+ private BooleanDt myPrimary;
+
+ @Child(name="valueSet", order=5, min=0, max=1)
+ @ChildResource(types= {
+ ValueSet.class,
+ })
+ private ResourceReference myValueSet;
+
+ /**
+ * Gets the value(s) for system (Identity of the terminology system ).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The identification of the code system that defines the meaning of the symbol in the code.
+ *
+ */
+ public UriDt getSystem() {
+ if (mySystem == null) {
+ mySystem = new UriDt();
+ }
+ return mySystem;
+ }
+
+ /**
+ * Sets the value(s) for system (Identity of the terminology system )
+ *
+ *
+ * Definition:
+ * The identification of the code system that defines the meaning of the symbol in the code.
+ *
+ */
+ public void setSystem(UriDt theValue) {
+ mySystem = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for version (Version of the system - if relevant).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged
+ *
+ */
+ public StringDt getVersion() {
+ if (myVersion == null) {
+ myVersion = new StringDt();
+ }
+ return myVersion;
+ }
+
+ /**
+ * Sets the value(s) for version (Version of the system - if relevant)
+ *
+ *
+ * Definition:
+ * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged
+ *
+ */
+ public void setVersion(StringDt theValue) {
+ myVersion = theValue;
+ }
+
+ /**
+ * Sets the value(s) for version (Version of the system - if relevant)
+ *
+ *
+ * Definition:
+ * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged
+ *
+ */
+ public void setVersion( String theString) {
+ myVersion = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for code (Symbol in syntax defined by the system).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)
+ *
+ */
+ public CodeDt getCode() {
+ if (myCode == null) {
+ myCode = new CodeDt();
+ }
+ return myCode;
+ }
+
+ /**
+ * Sets the value(s) for code (Symbol in syntax defined by the system)
+ *
+ *
+ * Definition:
+ * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)
+ *
+ */
+ public void setCode(CodeDt theValue) {
+ myCode = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for display (Representation defined by the system).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * A representation of the meaning of the code in the system, following the rules of the system.
+ *
+ */
+ public StringDt getDisplay() {
+ if (myDisplay == null) {
+ myDisplay = new StringDt();
+ }
+ return myDisplay;
+ }
+
+ /**
+ * Sets the value(s) for display (Representation defined by the system)
+ *
+ *
+ * Definition:
+ * A representation of the meaning of the code in the system, following the rules of the system.
+ *
+ */
+ public void setDisplay(StringDt theValue) {
+ myDisplay = theValue;
+ }
+
+ /**
+ * Sets the value(s) for display (Representation defined by the system)
+ *
+ *
+ * Definition:
+ * A representation of the meaning of the code in the system, following the rules of the system.
+ *
+ */
+ public void setDisplay( String theString) {
+ myDisplay = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for primary (If this code was chosen directly by the user).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)
+ *
+ */
+ public BooleanDt getPrimary() {
+ if (myPrimary == null) {
+ myPrimary = new BooleanDt();
+ }
+ return myPrimary;
+ }
+
+ /**
+ * Sets the value(s) for primary (If this code was chosen directly by the user)
+ *
+ *
+ * Definition:
+ * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)
+ *
+ */
+ public void setPrimary(BooleanDt theValue) {
+ myPrimary = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for valueSet (Set this coding was chosen from).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The set of possible coded values this coding was chosen from or constrained by
+ *
+ */
+ public ResourceReference getValueSet() {
+ if (myValueSet == null) {
+ myValueSet = new ResourceReference();
+ }
+ return myValueSet;
+ }
+
+ /**
+ * Sets the value(s) for valueSet (Set this coding was chosen from)
+ *
+ *
+ * Definition:
+ * The set of possible coded values this coding was chosen from or constrained by
+ *
+ */
+ public void setValueSet(ResourceReference theValue) {
+ myValueSet = theValue;
+ }
+
+
+
+
+}
\ No newline at end of file
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/ContactDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/ContactDt.java
index 86e1dff7e90..ddbd5d2affe 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/ContactDt.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/ContactDt.java
@@ -17,9 +17,11 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
+
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
+import ca.uhn.fhir.model.dstu.valueset.*;
/**
* HAPI/FHIR Contact Datatype
@@ -39,13 +41,13 @@ import ca.uhn.fhir.model.primitive.*;
public class ContactDt extends BaseElement implements ICompositeDatatype {
@Child(name="system", type=CodeDt.class, order=0, min=0, max=1)
- private CodeDt mySystem;
+ private BoundCodeDt mySystem;
@Child(name="value", type=StringDt.class, order=1, min=0, max=1)
private StringDt myValue;
@Child(name="use", type=CodeDt.class, order=2, min=0, max=1)
- private CodeDt myUse;
+ private BoundCodeDt myUse;
@Child(name="period", type=PeriodDt.class, order=3, min=0, max=1)
private PeriodDt myPeriod;
@@ -60,9 +62,9 @@ public class ContactDt extends BaseElement implements ICompositeDatatype {
* Telecommunications form for contact - what communications system is required to make use of the contact
*
*/
- public CodeDt getSystem() {
+ public BoundCodeDt getSystem() {
if (mySystem == null) {
- mySystem = new CodeDt();
+ mySystem = new BoundCodeDt(ContactSystemEnum.VALUESET_BINDER);
}
return mySystem;
}
@@ -75,11 +77,23 @@ public class ContactDt extends BaseElement implements ICompositeDatatype {
* Telecommunications form for contact - what communications system is required to make use of the contact
*
*/
- public void setSystem(CodeDt theValue) {
+ public void setSystem(BoundCodeDt theValue) {
mySystem = theValue;
}
-
-
+
+ /**
+ * Sets the value(s) for system (phone | fax | email | url)
+ *
+ *
+ * Definition:
+ * Telecommunications form for contact - what communications system is required to make use of the contact
+ *
+ */
+ public void setSystem(ContactSystemEnum theValue) {
+ getSystem().setValueAsEnum(theValue);
+ }
+
+
/**
* Gets the value(s) for value (The actual contact details).
* creating it if it does
@@ -108,8 +122,8 @@ public class ContactDt extends BaseElement implements ICompositeDatatype {
public void setValue(StringDt theValue) {
myValue = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for value (The actual contact details)
*
*
@@ -131,9 +145,9 @@ public class ContactDt extends BaseElement implements ICompositeDatatype {
* Identifies the purpose for the address
*
*/
- public CodeDt getUse() {
+ public BoundCodeDt getUse() {
if (myUse == null) {
- myUse = new CodeDt();
+ myUse = new BoundCodeDt(ContactUseEnum.VALUESET_BINDER);
}
return myUse;
}
@@ -146,11 +160,23 @@ public class ContactDt extends BaseElement implements ICompositeDatatype {
* Identifies the purpose for the address
*
*/
- public void setUse(CodeDt theValue) {
+ public void setUse(BoundCodeDt theValue) {
myUse = theValue;
}
-
-
+
+ /**
+ * Sets the value(s) for use (home | work | temp | old | mobile - purpose of this address)
+ *
+ *
+ * Definition:
+ * Identifies the purpose for the address
+ *
+ */
+ public void setUse(ContactUseEnum theValue) {
+ getUse().setValueAsEnum(theValue);
+ }
+
+
/**
* Gets the value(s) for period (Time period when the contact was/is in use).
* creating it if it does
@@ -179,8 +205,8 @@ public class ContactDt extends BaseElement implements ICompositeDatatype {
public void setPeriod(PeriodDt theValue) {
myPeriod = theValue;
}
-
-
+
+
}
\ No newline at end of file
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/HumanNameDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/HumanNameDt.java
index 71596cbbd76..5d5347dd852 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/HumanNameDt.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/HumanNameDt.java
@@ -17,9 +17,11 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
+
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
+import ca.uhn.fhir.model.dstu.valueset.*;
/**
* HAPI/FHIR HumanName Datatype
@@ -39,7 +41,7 @@ import ca.uhn.fhir.model.primitive.*;
public class HumanNameDt extends BaseElement implements ICompositeDatatype {
@Child(name="use", type=CodeDt.class, order=0, min=0, max=1)
- private CodeDt myUse;
+ private BoundCodeDt myUse;
@Child(name="text", type=StringDt.class, order=1, min=0, max=1)
private StringDt myText;
@@ -69,9 +71,9 @@ public class HumanNameDt extends BaseElement implements ICompositeDatatype {
* Identifies the purpose for this name
*
*/
- public CodeDt getUse() {
+ public BoundCodeDt getUse() {
if (myUse == null) {
- myUse = new CodeDt();
+ myUse = new BoundCodeDt(NameUseEnum.VALUESET_BINDER);
}
return myUse;
}
@@ -84,11 +86,23 @@ public class HumanNameDt extends BaseElement implements ICompositeDatatype {
* Identifies the purpose for this name
*
*/
- public void setUse(CodeDt theValue) {
+ public void setUse(BoundCodeDt theValue) {
myUse = theValue;
}
-
-
+
+ /**
+ * Sets the value(s) for use (usual | official | temp | nickname | anonymous | old | maiden)
+ *
+ *
+ * Definition:
+ * Identifies the purpose for this name
+ *
+ */
+ public void setUse(NameUseEnum theValue) {
+ getUse().setValueAsEnum(theValue);
+ }
+
+
/**
* Gets the value(s) for text (Text representation of the full name).
* creating it if it does
@@ -117,8 +131,8 @@ public class HumanNameDt extends BaseElement implements ICompositeDatatype {
public void setText(StringDt theValue) {
myText = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for text (Text representation of the full name)
*
*
@@ -158,8 +172,8 @@ public class HumanNameDt extends BaseElement implements ICompositeDatatype {
public void setFamily(List theValue) {
myFamily = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for family (Family name (often called 'Surname'))
*
*
@@ -202,8 +216,8 @@ public class HumanNameDt extends BaseElement implements ICompositeDatatype {
public void setGiven(List theValue) {
myGiven = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for given (Given names (not always 'first'). Includes middle names)
*
*
@@ -246,8 +260,8 @@ public class HumanNameDt extends BaseElement implements ICompositeDatatype {
public void setPrefix(List theValue) {
myPrefix = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for prefix (Parts that come before the name)
*
*
@@ -290,8 +304,8 @@ public class HumanNameDt extends BaseElement implements ICompositeDatatype {
public void setSuffix(List theValue) {
mySuffix = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for suffix (Parts that come after the name)
*
*
+ * Definition:
+ * The purpose of this identifier
+ *
+ */
+ public BoundCodeDt getUse() {
+ if (myUse == null) {
+ myUse = new BoundCodeDt(IdentifierUseEnum.VALUESET_BINDER);
+ }
+ return myUse;
+ }
+
+ /**
+ * Sets the value(s) for use (usual | official | temp | secondary (If known)
+)
+ *
+ *
+ * Definition:
+ * The purpose of this identifier
+ *
+ */
+ public void setUse(BoundCodeDt theValue) {
+ myUse = theValue;
+ }
+
+ /**
+ * Sets the value(s) for use (usual | official | temp | secondary (If known)
+)
+ *
+ *
+ * Definition:
+ * The purpose of this identifier
+ *
+ */
+ public void setUse(IdentifierUseEnum theValue) {
+ getUse().setValueAsEnum(theValue);
+ }
+
+
+ /**
+ * Gets the value(s) for label (Description of identifier).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * A text string for the identifier that can be displayed to a human so they can recognize the identifier
+ *
+ */
+ public StringDt getLabel() {
+ if (myLabel == null) {
+ myLabel = new StringDt();
+ }
+ return myLabel;
+ }
+
+ /**
+ * Sets the value(s) for label (Description of identifier)
+ *
+ *
+ * Definition:
+ * A text string for the identifier that can be displayed to a human so they can recognize the identifier
+ *
+ */
+ public void setLabel(StringDt theValue) {
+ myLabel = theValue;
+ }
+
+ /**
+ * Sets the value(s) for label (Description of identifier)
+ *
+ *
+ * Definition:
+ * A text string for the identifier that can be displayed to a human so they can recognize the identifier
+ *
+ */
+ public void setLabel( String theString) {
+ myLabel = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for system (The namespace for the identifier).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Establishes the namespace in which set of possible id values is unique.
+ *
+ */
+ public UriDt getSystem() {
+ if (mySystem == null) {
+ mySystem = new UriDt();
+ }
+ return mySystem;
+ }
+
+ /**
+ * Sets the value(s) for system (The namespace for the identifier)
+ *
+ *
+ * Definition:
+ * Establishes the namespace in which set of possible id values is unique.
+ *
+ */
+ public void setSystem(UriDt theValue) {
+ mySystem = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for value (The value that is unique).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The portion of the identifier typically displayed to the user and which is unique within the context of the system.
+ *
+ */
+ public StringDt getValue() {
+ if (myValue == null) {
+ myValue = new StringDt();
+ }
+ return myValue;
+ }
+
+ /**
+ * Sets the value(s) for value (The value that is unique)
+ *
+ *
+ * Definition:
+ * The portion of the identifier typically displayed to the user and which is unique within the context of the system.
+ *
+ */
+ public void setValue(StringDt theValue) {
+ myValue = theValue;
+ }
+
+ /**
+ * Sets the value(s) for value (The value that is unique)
+ *
+ *
+ * Definition:
+ * The portion of the identifier typically displayed to the user and which is unique within the context of the system.
+ *
+ */
+ public void setValue( String theString) {
+ myValue = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for period (Time period when id is/was valid for use).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Time period during which identifier is/was valid for use
+ *
+ */
+ public PeriodDt getPeriod() {
+ if (myPeriod == null) {
+ myPeriod = new PeriodDt();
+ }
+ return myPeriod;
+ }
+
+ /**
+ * Sets the value(s) for period (Time period when id is/was valid for use)
+ *
+ *
+ * Definition:
+ * Time period during which identifier is/was valid for use
+ *
+ */
+ public void setPeriod(PeriodDt theValue) {
+ myPeriod = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for assigner (Organization that issued id (may be just text)).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Organization that issued/manages the identifier
+ *
+ */
+ public ResourceReference getAssigner() {
+ if (myAssigner == null) {
+ myAssigner = new ResourceReference();
+ }
+ return myAssigner;
+ }
+
+ /**
+ * Sets the value(s) for assigner (Organization that issued id (may be just text))
+ *
+ *
+ * Definition:
+ * Organization that issued/manages the identifier
+ *
+ */
+ public void setAssigner(ResourceReference theValue) {
+ myAssigner = theValue;
+ }
+
+
+
+
+}
\ No newline at end of file
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/NarrativeDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/NarrativeDt.java
index 919ae3a7871..d633ac9ca57 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/NarrativeDt.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/NarrativeDt.java
@@ -20,6 +20,7 @@ import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
+import ca.uhn.fhir.model.dstu.valueset.*;
/**
* HAPI/FHIR Narrative Datatype
@@ -39,7 +40,7 @@ import ca.uhn.fhir.model.primitive.*;
public class NarrativeDt extends BaseElement implements ICompositeDatatype {
@Child(name="status", type=CodeDt.class, order=0, min=1, max=1)
- private CodeDt myStatus;
+ private BoundCodeDt myStatus;
@Child(name="div", type=XhtmlDt.class, order=1, min=1, max=1)
private XhtmlDt myDiv;
@@ -54,9 +55,9 @@ public class NarrativeDt extends BaseElement implements ICompositeDatatype {
* The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data
*
*/
- public CodeDt getStatus() {
+ public BoundCodeDt getStatus() {
if (myStatus == null) {
- myStatus = new CodeDt();
+ myStatus = new BoundCodeDt(NarrativeStatusEnum.VALUESET_BINDER);
}
return myStatus;
}
@@ -69,11 +70,23 @@ public class NarrativeDt extends BaseElement implements ICompositeDatatype {
* The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data
*
*/
- public void setStatus(CodeDt theValue) {
+ public void setStatus(BoundCodeDt theValue) {
myStatus = theValue;
}
-
-
+
+ /**
+ * Sets the value(s) for status (generated | extensions | additional)
+ *
+ *
+ * Definition:
+ * The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data
+ *
+ */
+ public void setStatus(NarrativeStatusEnum theValue) {
+ getStatus().setValueAsEnum(theValue);
+ }
+
+
/**
* Gets the value(s) for div (Limited xhtml content).
* creating it if it does
@@ -102,8 +115,8 @@ public class NarrativeDt extends BaseElement implements ICompositeDatatype {
public void setDiv(XhtmlDt theValue) {
myDiv = theValue;
}
-
-
+
+
}
\ No newline at end of file
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/PeriodDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/PeriodDt.java
similarity index 89%
rename from hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/PeriodDt.java
rename to hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/PeriodDt.java
index acb2c7dbc54..b262aa5a7d8 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/PeriodDt.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/PeriodDt.java
@@ -1,10 +1,11 @@
-package ca.uhn.fhir.model.primitive;
+package ca.uhn.fhir.model.dstu.composite;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Constraint;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
+import ca.uhn.fhir.model.primitive.DateTimeDt;
@DatatypeDef(name="Period")
public class PeriodDt extends BaseElement implements ICompositeDatatype {
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/QuantityDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/QuantityDt.java
index 7e152b2f28c..fe39f288306 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/QuantityDt.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/QuantityDt.java
@@ -20,6 +20,7 @@ import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
+import ca.uhn.fhir.model.dstu.valueset.*;
/**
* HAPI/FHIR Quantity Datatype
@@ -42,7 +43,7 @@ public class QuantityDt extends BaseElement implements ICompositeDatatype {
private DecimalDt myValue;
@Child(name="comparator", type=CodeDt.class, order=1, min=0, max=1)
- private CodeDt myComparator;
+ private BoundCodeDt myComparator;
@Child(name="units", type=StringDt.class, order=2, min=0, max=1)
private StringDt myUnits;
@@ -81,8 +82,8 @@ public class QuantityDt extends BaseElement implements ICompositeDatatype {
public void setValue(DecimalDt theValue) {
myValue = theValue;
}
-
-
+
+
/**
* Gets the value(s) for comparator (< | <= | >= | > - how to understand the value).
* creating it if it does
@@ -93,9 +94,9 @@ public class QuantityDt extends BaseElement implements ICompositeDatatype {
* How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is "<" , then the real value is < stated value
*
*/
- public CodeDt getComparator() {
+ public BoundCodeDt getComparator() {
if (myComparator == null) {
- myComparator = new CodeDt();
+ myComparator = new BoundCodeDt(QuantityCompararatorEnum.VALUESET_BINDER);
}
return myComparator;
}
@@ -108,11 +109,23 @@ public class QuantityDt extends BaseElement implements ICompositeDatatype {
* How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is "<" , then the real value is < stated value
*
*/
- public void setComparator(CodeDt theValue) {
+ public void setComparator(BoundCodeDt theValue) {
myComparator = theValue;
}
-
-
+
+ /**
+ * Sets the value(s) for comparator (< | <= | >= | > - how to understand the value)
+ *
+ *
+ * Definition:
+ * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is "<" , then the real value is < stated value
+ *
+ */
+ public void setComparator(QuantityCompararatorEnum theValue) {
+ getComparator().setValueAsEnum(theValue);
+ }
+
+
/**
* Gets the value(s) for units (Unit representation).
* creating it if it does
@@ -141,8 +154,8 @@ public class QuantityDt extends BaseElement implements ICompositeDatatype {
public void setUnits(StringDt theValue) {
myUnits = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for units (Unit representation)
*
*
@@ -182,8 +195,8 @@ public class QuantityDt extends BaseElement implements ICompositeDatatype {
public void setSystem(UriDt theValue) {
mySystem = theValue;
}
-
-
+
+
/**
* Gets the value(s) for code (Coded form of the unit).
* creating it if it does
@@ -212,8 +225,8 @@ public class QuantityDt extends BaseElement implements ICompositeDatatype {
public void setCode(CodeDt theValue) {
myCode = theValue;
}
-
-
+
+
}
\ No newline at end of file
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/RangeDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/RangeDt.java
similarity index 89%
rename from hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/RangeDt.java
rename to hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/RangeDt.java
index 8b6215e94d8..0768cec905c 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/RangeDt.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/RangeDt.java
@@ -1,11 +1,10 @@
-package ca.uhn.fhir.model.primitive;
+package ca.uhn.fhir.model.dstu.composite;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Constraint;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
-import ca.uhn.fhir.model.dstu.composite.QuantityDt;
@DatatypeDef(name="Range")
public class RangeDt extends BaseElement implements ICompositeDatatype {
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/RatioDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/RatioDt.java
similarity index 90%
rename from hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/RatioDt.java
rename to hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/RatioDt.java
index a9fd3210bef..d5ea64edd04 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/RatioDt.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/RatioDt.java
@@ -1,11 +1,10 @@
-package ca.uhn.fhir.model.primitive;
+package ca.uhn.fhir.model.dstu.composite;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Constraint;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
-import ca.uhn.fhir.model.dstu.composite.QuantityDt;
@DatatypeDef(name="Ratio")
public class RatioDt extends BaseElement implements ICompositeDatatype {
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/SampledDataDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/SampledDataDt.java
similarity index 91%
rename from hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/SampledDataDt.java
rename to hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/SampledDataDt.java
index 819deb7e847..66e43414650 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/SampledDataDt.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/composite/SampledDataDt.java
@@ -1,11 +1,13 @@
-package ca.uhn.fhir.model.primitive;
+package ca.uhn.fhir.model.dstu.composite;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
-import ca.uhn.fhir.model.dstu.composite.QuantityDt;
+import ca.uhn.fhir.model.primitive.DecimalDt;
+import ca.uhn.fhir.model.primitive.IntegerDt;
+import ca.uhn.fhir.model.primitive.StringDt;
@DatatypeDef(name="SampledData")
public class SampledDataDt extends BaseElement implements ICompositeDatatype {
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Device.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Device.java
index d3cf1585e24..7fb709a30a6 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Device.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Device.java
@@ -21,6 +21,7 @@ import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
+import ca.uhn.fhir.model.dstu.valueset.*;
/**
* HAPI/FHIR Device Resource
@@ -37,7 +38,7 @@ import ca.uhn.fhir.model.dstu.composite.*;
*
*/
@ResourceDef(name="Device")
-public class Device extends BaseElement implements IResource {
+public class Device extends BaseResource implements IResource {
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
private List myIdentifier;
@@ -115,8 +116,8 @@ public class Device extends BaseElement implements IResource {
public void setIdentifier(List theValue) {
myIdentifier = theValue;
}
-
-
+
+
/**
* Gets the value(s) for type (What kind of device this is).
* creating it if it does
@@ -145,8 +146,8 @@ public class Device extends BaseElement implements IResource {
public void setType(CodeableConceptDt theValue) {
myType = theValue;
}
-
-
+
+
/**
* Gets the value(s) for manufacturer (Name of device manufacturer).
* creating it if it does
@@ -175,8 +176,8 @@ public class Device extends BaseElement implements IResource {
public void setManufacturer(StringDt theValue) {
myManufacturer = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for manufacturer (Name of device manufacturer)
*
*
@@ -216,8 +217,8 @@ public class Device extends BaseElement implements IResource {
public void setModel(StringDt theValue) {
myModel = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for model (Model id assigned by the manufacturer)
*
*
@@ -257,8 +258,8 @@ public class Device extends BaseElement implements IResource {
public void setVersion(StringDt theValue) {
myVersion = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for version (Version number (i.e. software))
*
*
@@ -298,8 +299,8 @@ public class Device extends BaseElement implements IResource {
public void setExpiry(DateDt theValue) {
myExpiry = theValue;
}
-
-
+
+
/**
* Gets the value(s) for udi (FDA Mandated Unique Device Identifier).
* creating it if it does
@@ -328,8 +329,8 @@ public class Device extends BaseElement implements IResource {
public void setUdi(StringDt theValue) {
myUdi = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for udi (FDA Mandated Unique Device Identifier)
*
*
@@ -369,8 +370,8 @@ public class Device extends BaseElement implements IResource {
public void setLotNumber(StringDt theValue) {
myLotNumber = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for lotNumber (Lot number of manufacture)
*
*
@@ -410,8 +411,8 @@ public class Device extends BaseElement implements IResource {
public void setOwner(ResourceReference theValue) {
myOwner = theValue;
}
-
-
+
+
/**
* Gets the value(s) for location (Where the resource is found).
* creating it if it does
@@ -440,8 +441,8 @@ public class Device extends BaseElement implements IResource {
public void setLocation(ResourceReference theValue) {
myLocation = theValue;
}
-
-
+
+
/**
* Gets the value(s) for patient (If the resource is affixed to a person).
* creating it if it does
@@ -470,8 +471,8 @@ public class Device extends BaseElement implements IResource {
public void setPatient(ResourceReference theValue) {
myPatient = theValue;
}
-
-
+
+
/**
* Gets the value(s) for contact (Details for human/organization for support).
* creating it if it does
@@ -500,8 +501,8 @@ public class Device extends BaseElement implements IResource {
public void setContact(List theValue) {
myContact = theValue;
}
-
-
+
+
/**
* Gets the value(s) for url (Network address to contact device).
* creating it if it does
@@ -530,8 +531,8 @@ public class Device extends BaseElement implements IResource {
public void setUrl(UriDt theValue) {
myUrl = theValue;
}
-
-
+
+
}
\ No newline at end of file
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Group.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Group.java
index c68e0cd2072..e6a7b51923c 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Group.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Group.java
@@ -17,10 +17,12 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
+
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
+import ca.uhn.fhir.model.dstu.valueset.*;
/**
* HAPI/FHIR Group Resource
@@ -37,13 +39,13 @@ import ca.uhn.fhir.model.dstu.composite.*;
*
*/
@ResourceDef(name="Group")
-public class Group extends BaseElement implements IResource {
+public class Group extends BaseResource implements IResource {
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1)
private IdentifierDt myIdentifier;
@Child(name="type", type=CodeDt.class, order=1, min=1, max=1)
- private CodeDt myType;
+ private BoundCodeDt myType;
@Child(name="actual", type=BooleanDt.class, order=2, min=1, max=1)
private BooleanDt myActual;
@@ -98,8 +100,8 @@ public class Group extends BaseElement implements IResource {
public void setIdentifier(IdentifierDt theValue) {
myIdentifier = theValue;
}
-
-
+
+
/**
* Gets the value(s) for type (person | animal | practitioner | device | medication | substance).
* creating it if it does
@@ -110,9 +112,9 @@ public class Group extends BaseElement implements IResource {
* Identifies the broad classification of the kind of resources the group includes
*
*/
- public CodeDt getType() {
+ public BoundCodeDt getType() {
if (myType == null) {
- myType = new CodeDt();
+ myType = new BoundCodeDt(GroupTypeEnum.VALUESET_BINDER);
}
return myType;
}
@@ -125,11 +127,23 @@ public class Group extends BaseElement implements IResource {
* Identifies the broad classification of the kind of resources the group includes
*
*/
- public void setType(CodeDt theValue) {
+ public void setType(BoundCodeDt theValue) {
myType = theValue;
}
-
-
+
+ /**
+ * Sets the value(s) for type (person | animal | practitioner | device | medication | substance)
+ *
+ *
+ * Definition:
+ * Identifies the broad classification of the kind of resources the group includes
+ *
+ */
+ public void setType(GroupTypeEnum theValue) {
+ getType().setValueAsEnum(theValue);
+ }
+
+
/**
* Gets the value(s) for actual (Descriptive or actual).
* creating it if it does
@@ -158,8 +172,8 @@ public class Group extends BaseElement implements IResource {
public void setActual(BooleanDt theValue) {
myActual = theValue;
}
-
-
+
+
/**
* Gets the value(s) for code (Kind of Group members).
* creating it if it does
@@ -188,8 +202,8 @@ public class Group extends BaseElement implements IResource {
public void setCode(CodeableConceptDt theValue) {
myCode = theValue;
}
-
-
+
+
/**
* Gets the value(s) for name (Label for Group).
* creating it if it does
@@ -218,8 +232,8 @@ public class Group extends BaseElement implements IResource {
public void setName(StringDt theValue) {
myName = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for name (Label for Group)
*
*
@@ -259,8 +273,8 @@ public class Group extends BaseElement implements IResource {
public void setQuantity(IntegerDt theValue) {
myQuantity = theValue;
}
-
-
+
+
/**
* Gets the value(s) for characteristic (Trait of group members).
* creating it if it does
@@ -289,8 +303,8 @@ public class Group extends BaseElement implements IResource {
public void setCharacteristic(List theValue) {
myCharacteristic = theValue;
}
-
-
+
+
/**
* Gets the value(s) for member (Who is in group).
* creating it if it does
@@ -316,8 +330,8 @@ public class Group extends BaseElement implements IResource {
public void setMember(List theValue) {
myMember = theValue;
}
-
-
+
+
/**
* Block class for child element: Group.characteristic (Trait of group members)
*
@@ -371,8 +385,8 @@ public class Group extends BaseElement implements IResource {
public void setCode(CodeableConceptDt theValue) {
myCode = theValue;
}
-
-
+
+
/**
* Gets the value(s) for value[x] (Value held by characteristic).
* creating it if it does
@@ -398,8 +412,8 @@ public class Group extends BaseElement implements IResource {
public void setValue(IDatatype theValue) {
myValue = theValue;
}
-
-
+
+
/**
* Gets the value(s) for exclude (Group includes or excludes).
* creating it if it does
@@ -428,8 +442,8 @@ public class Group extends BaseElement implements IResource {
public void setExclude(BooleanDt theValue) {
myExclude = theValue;
}
-
-
+
+
}
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Location.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Location.java
index 381b38c3276..b2b3842f372 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Location.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Location.java
@@ -21,6 +21,7 @@ import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
+import ca.uhn.fhir.model.dstu.valueset.*;
/**
* HAPI/FHIR Location Resource
@@ -37,7 +38,7 @@ import ca.uhn.fhir.model.dstu.composite.*;
*
*/
@ResourceDef(name="Location")
-public class Location extends BaseElement implements IResource {
+public class Location extends BaseResource implements IResource {
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1)
private IdentifierDt myIdentifier;
@@ -70,7 +71,7 @@ public class Location extends BaseElement implements IResource {
private ResourceReference myManagingOrganization;
@Child(name="status", type=CodeDt.class, order=9, min=0, max=1)
- private CodeDt myStatus;
+ private BoundCodeDt myStatus;
@Child(name="partOf", order=10, min=0, max=1)
@ChildResource(types= {
@@ -79,7 +80,7 @@ public class Location extends BaseElement implements IResource {
private ResourceReference myPartOf;
@Child(name="mode", type=CodeDt.class, order=11, min=0, max=1)
- private CodeDt myMode;
+ private BoundCodeDt myMode;
/**
* Gets the value(s) for identifier (Unique code or number identifying the location to its users).
@@ -109,8 +110,8 @@ public class Location extends BaseElement implements IResource {
public void setIdentifier(IdentifierDt theValue) {
myIdentifier = theValue;
}
-
-
+
+
/**
* Gets the value(s) for name (Name of the location as used by humans).
* creating it if it does
@@ -139,8 +140,8 @@ public class Location extends BaseElement implements IResource {
public void setName(StringDt theValue) {
myName = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for name (Name of the location as used by humans)
*
*
@@ -180,8 +181,8 @@ public class Location extends BaseElement implements IResource {
public void setDescription(StringDt theValue) {
myDescription = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for description (Description of the Location, which helps in finding or referencing the place)
*
*
@@ -221,8 +222,8 @@ public class Location extends BaseElement implements IResource {
public void setType(CodeableConceptDt theValue) {
myType = theValue;
}
-
-
+
+
/**
* Gets the value(s) for telecom (Contact details of the location).
* creating it if it does
@@ -251,8 +252,8 @@ public class Location extends BaseElement implements IResource {
public void setTelecom(List theValue) {
myTelecom = theValue;
}
-
-
+
+
/**
* Gets the value(s) for address (Physical location).
* creating it if it does
@@ -281,8 +282,8 @@ public class Location extends BaseElement implements IResource {
public void setAddress(AddressDt theValue) {
myAddress = theValue;
}
-
-
+
+
/**
* Gets the value(s) for physicalType (Physical form of the location).
* creating it if it does
@@ -311,8 +312,8 @@ public class Location extends BaseElement implements IResource {
public void setPhysicalType(CodeableConceptDt theValue) {
myPhysicalType = theValue;
}
-
-
+
+
/**
* Gets the value(s) for position (The absolute geographic location ).
* creating it if it does
@@ -341,8 +342,8 @@ public class Location extends BaseElement implements IResource {
public void setPosition(Position theValue) {
myPosition = theValue;
}
-
-
+
+
/**
* Gets the value(s) for managingOrganization (The organization that is responsible for the provisioning and upkeep of the location).
* creating it if it does
@@ -371,8 +372,8 @@ public class Location extends BaseElement implements IResource {
public void setManagingOrganization(ResourceReference theValue) {
myManagingOrganization = theValue;
}
-
-
+
+
/**
* Gets the value(s) for status (active | suspended | inactive).
* creating it if it does
@@ -383,9 +384,9 @@ public class Location extends BaseElement implements IResource {
*
*
*/
- public CodeDt getStatus() {
+ public BoundCodeDt getStatus() {
if (myStatus == null) {
- myStatus = new CodeDt();
+ myStatus = new BoundCodeDt(LocationStatusEnum.VALUESET_BINDER);
}
return myStatus;
}
@@ -398,11 +399,23 @@ public class Location extends BaseElement implements IResource {
*
*
*/
- public void setStatus(CodeDt theValue) {
+ public void setStatus(BoundCodeDt theValue) {
myStatus = theValue;
}
-
-
+
+ /**
+ * Sets the value(s) for status (active | suspended | inactive)
+ *
+ *
+ * Definition:
+ *
+ *
+ */
+ public void setStatus(LocationStatusEnum theValue) {
+ getStatus().setValueAsEnum(theValue);
+ }
+
+
/**
* Gets the value(s) for partOf (Another Location which this Location is physically part of).
* creating it if it does
@@ -431,8 +444,8 @@ public class Location extends BaseElement implements IResource {
public void setPartOf(ResourceReference theValue) {
myPartOf = theValue;
}
-
-
+
+
/**
* Gets the value(s) for mode (instance | kind).
* creating it if it does
@@ -443,9 +456,9 @@ public class Location extends BaseElement implements IResource {
* Indicates whether a resource instance represents a specific location or a class of locations
*
*/
- public CodeDt getMode() {
+ public BoundCodeDt getMode() {
if (myMode == null) {
- myMode = new CodeDt();
+ myMode = new BoundCodeDt(LocationModeEnum.VALUESET_BINDER);
}
return myMode;
}
@@ -458,11 +471,23 @@ public class Location extends BaseElement implements IResource {
* Indicates whether a resource instance represents a specific location or a class of locations
*
*/
- public void setMode(CodeDt theValue) {
+ public void setMode(BoundCodeDt theValue) {
myMode = theValue;
}
-
-
+
+ /**
+ * Sets the value(s) for mode (instance | kind)
+ *
+ *
+ * Definition:
+ * Indicates whether a resource instance represents a specific location or a class of locations
+ *
+ */
+ public void setMode(LocationModeEnum theValue) {
+ getMode().setValueAsEnum(theValue);
+ }
+
+
/**
* Block class for child element: Location.position (The absolute geographic location )
*
@@ -511,8 +536,8 @@ public class Location extends BaseElement implements IResource {
public void setLongitude(DecimalDt theValue) {
myLongitude = theValue;
}
-
-
+
+
/**
* Gets the value(s) for latitude (Latitude as expressed in KML).
* creating it if it does
@@ -541,8 +566,8 @@ public class Location extends BaseElement implements IResource {
public void setLatitude(DecimalDt theValue) {
myLatitude = theValue;
}
-
-
+
+
/**
* Gets the value(s) for altitude (Altitude as expressed in KML).
* creating it if it does
@@ -571,8 +596,8 @@ public class Location extends BaseElement implements IResource {
public void setAltitude(DecimalDt theValue) {
myAltitude = theValue;
}
-
-
+
+
}
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Medication.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Medication.java
index 17685665660..63ef6e28cdf 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Medication.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Medication.java
@@ -17,10 +17,12 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
+
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
+import ca.uhn.fhir.model.dstu.valueset.*;
/**
* HAPI/FHIR Medication Resource
@@ -37,7 +39,7 @@ import ca.uhn.fhir.model.dstu.composite.*;
*
*/
@ResourceDef(name="Medication")
-public class Medication extends BaseElement implements IResource {
+public class Medication extends BaseResource implements IResource {
@Child(name="name", type=StringDt.class, order=0, min=0, max=1)
private StringDt myName;
@@ -55,7 +57,7 @@ public class Medication extends BaseElement implements IResource {
private ResourceReference myManufacturer;
@Child(name="kind", type=CodeDt.class, order=4, min=0, max=1)
- private CodeDt myKind;
+ private BoundCodeDt myKind;
@Child(name="product", order=5, min=0, max=1)
private Product myProduct;
@@ -91,8 +93,8 @@ public class Medication extends BaseElement implements IResource {
public void setName(StringDt theValue) {
myName = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for name (Common / Commercial name)
*
*
@@ -132,8 +134,8 @@ public class Medication extends BaseElement implements IResource {
public void setCode(CodeableConceptDt theValue) {
myCode = theValue;
}
-
-
+
+
/**
* Gets the value(s) for isBrand (True if a brand).
* creating it if it does
@@ -162,8 +164,8 @@ public class Medication extends BaseElement implements IResource {
public void setIsBrand(BooleanDt theValue) {
myIsBrand = theValue;
}
-
-
+
+
/**
* Gets the value(s) for manufacturer (Manufacturer of the item).
* creating it if it does
@@ -192,8 +194,8 @@ public class Medication extends BaseElement implements IResource {
public void setManufacturer(ResourceReference theValue) {
myManufacturer = theValue;
}
-
-
+
+
/**
* Gets the value(s) for kind (product | package).
* creating it if it does
@@ -204,9 +206,9 @@ public class Medication extends BaseElement implements IResource {
* Medications are either a single administrable product or a package that contains one or more products.
*
*/
- public CodeDt getKind() {
+ public BoundCodeDt getKind() {
if (myKind == null) {
- myKind = new CodeDt();
+ myKind = new BoundCodeDt(MedicationKindEnum.VALUESET_BINDER);
}
return myKind;
}
@@ -219,11 +221,23 @@ public class Medication extends BaseElement implements IResource {
* Medications are either a single administrable product or a package that contains one or more products.
*
*/
- public void setKind(CodeDt theValue) {
+ public void setKind(BoundCodeDt theValue) {
myKind = theValue;
}
-
-
+
+ /**
+ * Sets the value(s) for kind (product | package)
+ *
+ *
+ * Definition:
+ * Medications are either a single administrable product or a package that contains one or more products.
+ *
+ */
+ public void setKind(MedicationKindEnum theValue) {
+ getKind().setValueAsEnum(theValue);
+ }
+
+
/**
* Gets the value(s) for product (Administrable medication details).
* creating it if it does
@@ -252,8 +266,8 @@ public class Medication extends BaseElement implements IResource {
public void setProduct(Product theValue) {
myProduct = theValue;
}
-
-
+
+
/**
* Gets the value(s) for package (Details about packaged medications).
* creating it if it does
@@ -282,8 +296,8 @@ public class Medication extends BaseElement implements IResource {
public void setPackage(CodeDt theValue) {
myPackage = theValue;
}
-
-
+
+
/**
* Block class for child element: Medication.product (Administrable medication details)
*
@@ -329,8 +343,8 @@ public class Medication extends BaseElement implements IResource {
public void setForm(CodeableConceptDt theValue) {
myForm = theValue;
}
-
-
+
+
/**
* Gets the value(s) for ingredient (Active or inactive ingredient).
* creating it if it does
@@ -359,8 +373,8 @@ public class Medication extends BaseElement implements IResource {
public void setIngredient(List theValue) {
myIngredient = theValue;
}
-
-
+
+
}
@@ -410,8 +424,8 @@ public class Medication extends BaseElement implements IResource {
public void setItem(ResourceReference theValue) {
myItem = theValue;
}
-
-
+
+
/**
* Gets the value(s) for amount (How much ingredient in product).
* creating it if it does
@@ -440,8 +454,8 @@ public class Medication extends BaseElement implements IResource {
public void setAmount(RatioDt theValue) {
myAmount = theValue;
}
-
-
+
+
}
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Observation.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Observation.java
index 29316fca681..2e4b6e9f15b 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Observation.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Observation.java
@@ -17,10 +17,12 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
+
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
+import ca.uhn.fhir.model.dstu.valueset.*;
/**
* HAPI/FHIR Observation Resource
@@ -37,7 +39,7 @@ import ca.uhn.fhir.model.dstu.composite.*;
*
*/
@ResourceDef(name="Observation")
-public class Observation extends BaseElement implements IResource {
+public class Observation extends BaseResource implements IResource {
@Child(name="name", type=CodeableConceptDt.class, order=0, min=1, max=1)
private CodeableConceptDt myName;
@@ -69,10 +71,10 @@ public class Observation extends BaseElement implements IResource {
private InstantDt myIssued;
@Child(name="status", type=CodeDt.class, order=6, min=1, max=1)
- private CodeDt myStatus;
+ private BoundCodeDt myStatus;
@Child(name="reliability", type=CodeDt.class, order=7, min=1, max=1)
- private CodeDt myReliability;
+ private BoundCodeDt myReliability;
@Child(name="bodySite", type=CodeableConceptDt.class, order=8, min=0, max=1)
private CodeableConceptDt myBodySite;
@@ -140,8 +142,8 @@ public class Observation extends BaseElement implements IResource {
public void setName(CodeableConceptDt theValue) {
myName = theValue;
}
-
-
+
+
/**
* Gets the value(s) for value[x] (Actual result).
* creating it if it does
@@ -167,8 +169,8 @@ public class Observation extends BaseElement implements IResource {
public void setValue(IDatatype theValue) {
myValue = theValue;
}
-
-
+
+
/**
* Gets the value(s) for interpretation (High, low, normal, etc.).
* creating it if it does
@@ -197,8 +199,8 @@ public class Observation extends BaseElement implements IResource {
public void setInterpretation(CodeableConceptDt theValue) {
myInterpretation = theValue;
}
-
-
+
+
/**
* Gets the value(s) for comments (Comments about result).
* creating it if it does
@@ -227,8 +229,8 @@ public class Observation extends BaseElement implements IResource {
public void setComments(StringDt theValue) {
myComments = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for comments (Comments about result)
*
*
@@ -265,8 +267,8 @@ public class Observation extends BaseElement implements IResource {
public void setApplies(IDatatype theValue) {
myApplies = theValue;
}
-
-
+
+
/**
* Gets the value(s) for issued (Date/Time this was made available).
* creating it if it does
@@ -295,8 +297,8 @@ public class Observation extends BaseElement implements IResource {
public void setIssued(InstantDt theValue) {
myIssued = theValue;
}
-
-
+
+
/**
* Gets the value(s) for status (registered | preliminary | final | amended +).
* creating it if it does
@@ -307,9 +309,9 @@ public class Observation extends BaseElement implements IResource {
* The status of the result value
*
*/
- public CodeDt getStatus() {
+ public BoundCodeDt getStatus() {
if (myStatus == null) {
- myStatus = new CodeDt();
+ myStatus = new BoundCodeDt(ObservationStatusEnum.VALUESET_BINDER);
}
return myStatus;
}
@@ -322,11 +324,23 @@ public class Observation extends BaseElement implements IResource {
* The status of the result value
*
*/
- public void setStatus(CodeDt theValue) {
+ public void setStatus(BoundCodeDt theValue) {
myStatus = theValue;
}
-
-
+
+ /**
+ * Sets the value(s) for status (registered | preliminary | final | amended +)
+ *
+ *
+ * Definition:
+ * The status of the result value
+ *
+ */
+ public void setStatus(ObservationStatusEnum theValue) {
+ getStatus().setValueAsEnum(theValue);
+ }
+
+
/**
* Gets the value(s) for reliability (ok | ongoing | early | questionable | calibrating | error + ).
* creating it if it does
@@ -337,9 +351,9 @@ public class Observation extends BaseElement implements IResource {
* An estimate of the degree to which quality issues have impacted on the value reported
*
*/
- public CodeDt getReliability() {
+ public BoundCodeDt getReliability() {
if (myReliability == null) {
- myReliability = new CodeDt();
+ myReliability = new BoundCodeDt(ObservationReliabilityEnum.VALUESET_BINDER);
}
return myReliability;
}
@@ -352,11 +366,23 @@ public class Observation extends BaseElement implements IResource {
* An estimate of the degree to which quality issues have impacted on the value reported
*
*/
- public void setReliability(CodeDt theValue) {
+ public void setReliability(BoundCodeDt theValue) {
myReliability = theValue;
}
-
-
+
+ /**
+ * Sets the value(s) for reliability (ok | ongoing | early | questionable | calibrating | error + )
+ *
+ *
+ * Definition:
+ * An estimate of the degree to which quality issues have impacted on the value reported
+ *
+ */
+ public void setReliability(ObservationReliabilityEnum theValue) {
+ getReliability().setValueAsEnum(theValue);
+ }
+
+
/**
* Gets the value(s) for bodySite (Observed body part).
* creating it if it does
@@ -385,8 +411,8 @@ public class Observation extends BaseElement implements IResource {
public void setBodySite(CodeableConceptDt theValue) {
myBodySite = theValue;
}
-
-
+
+
/**
* Gets the value(s) for method (How it was done).
* creating it if it does
@@ -415,8 +441,8 @@ public class Observation extends BaseElement implements IResource {
public void setMethod(CodeableConceptDt theValue) {
myMethod = theValue;
}
-
-
+
+
/**
* Gets the value(s) for identifier (Unique Id for this particular observation).
* creating it if it does
@@ -445,8 +471,8 @@ public class Observation extends BaseElement implements IResource {
public void setIdentifier(IdentifierDt theValue) {
myIdentifier = theValue;
}
-
-
+
+
/**
* Gets the value(s) for subject (Who and/or what this is about).
* creating it if it does
@@ -472,8 +498,8 @@ public class Observation extends BaseElement implements IResource {
public void setSubject(ResourceReference theValue) {
mySubject = theValue;
}
-
-
+
+
/**
* Gets the value(s) for specimen (Specimen used for this observation).
* creating it if it does
@@ -502,8 +528,8 @@ public class Observation extends BaseElement implements IResource {
public void setSpecimen(ResourceReference theValue) {
mySpecimen = theValue;
}
-
-
+
+
/**
* Gets the value(s) for performer (Who did the observation).
* creating it if it does
@@ -529,8 +555,8 @@ public class Observation extends BaseElement implements IResource {
public void setPerformer(List theValue) {
myPerformer = theValue;
}
-
-
+
+
/**
* Gets the value(s) for referenceRange (Provides guide for interpretation).
* creating it if it does
@@ -559,8 +585,8 @@ public class Observation extends BaseElement implements IResource {
public void setReferenceRange(List theValue) {
myReferenceRange = theValue;
}
-
-
+
+
/**
* Gets the value(s) for related (Observations related to this observation).
* creating it if it does
@@ -589,8 +615,8 @@ public class Observation extends BaseElement implements IResource {
public void setRelated(List theValue) {
myRelated = theValue;
}
-
-
+
+
/**
* Block class for child element: Observation.referenceRange (Provides guide for interpretation)
*
@@ -642,8 +668,8 @@ public class Observation extends BaseElement implements IResource {
public void setLow(QuantityDt theValue) {
myLow = theValue;
}
-
-
+
+
/**
* Gets the value(s) for high (High Range, if relevant).
* creating it if it does
@@ -672,8 +698,8 @@ public class Observation extends BaseElement implements IResource {
public void setHigh(QuantityDt theValue) {
myHigh = theValue;
}
-
-
+
+
/**
* Gets the value(s) for meaning (Indicates the meaning/use of this range of this range).
* creating it if it does
@@ -702,8 +728,8 @@ public class Observation extends BaseElement implements IResource {
public void setMeaning(CodeableConceptDt theValue) {
myMeaning = theValue;
}
-
-
+
+
/**
* Gets the value(s) for age (Applicable age range, if relevant).
* creating it if it does
@@ -732,8 +758,8 @@ public class Observation extends BaseElement implements IResource {
public void setAge(RangeDt theValue) {
myAge = theValue;
}
-
-
+
+
}
@@ -750,7 +776,7 @@ public class Observation extends BaseElement implements IResource {
public static class Related extends BaseElement implements IResourceBlock {
@Child(name="type", type=CodeDt.class, order=0, min=0, max=1)
- private CodeDt myType;
+ private BoundCodeDt myType;
@Child(name="target", order=1, min=1, max=1)
@ChildResource(types= {
@@ -768,9 +794,9 @@ public class Observation extends BaseElement implements IResource {
* A code specifying the kind of relationship that exists with the target observation
*
*/
- public CodeDt getType() {
+ public BoundCodeDt getType() {
if (myType == null) {
- myType = new CodeDt();
+ myType = new BoundCodeDt(ObservationRelationshipTypeEnum.VALUESET_BINDER);
}
return myType;
}
@@ -783,11 +809,23 @@ public class Observation extends BaseElement implements IResource {
* A code specifying the kind of relationship that exists with the target observation
*
*/
- public void setType(CodeDt theValue) {
+ public void setType(BoundCodeDt theValue) {
myType = theValue;
}
-
-
+
+ /**
+ * Sets the value(s) for type (has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by)
+ *
+ *
+ * Definition:
+ * A code specifying the kind of relationship that exists with the target observation
+ *
+ */
+ public void setType(ObservationRelationshipTypeEnum theValue) {
+ getType().setValueAsEnum(theValue);
+ }
+
+
/**
* Gets the value(s) for target (Observation that is related to this one).
* creating it if it does
@@ -816,8 +854,8 @@ public class Observation extends BaseElement implements IResource {
public void setTarget(ResourceReference theValue) {
myTarget = theValue;
}
-
-
+
+
}
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Organization.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Organization.java
index 33c4116dd77..ba568754679 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Organization.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Organization.java
@@ -21,6 +21,7 @@ import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
+import ca.uhn.fhir.model.dstu.valueset.*;
/**
* HAPI/FHIR Organization Resource
@@ -37,7 +38,7 @@ import ca.uhn.fhir.model.dstu.composite.*;
*
*/
@ResourceDef(name="Organization")
-public class Organization extends BaseElement implements IResource {
+public class Organization extends BaseResource implements IResource {
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
private List myIdentifier;
@@ -100,8 +101,8 @@ public class Organization extends BaseElement implements IResource {
public void setIdentifier(List theValue) {
myIdentifier = theValue;
}
-
-
+
+
/**
* Gets the value(s) for name (Name used for the organization).
* creating it if it does
@@ -130,8 +131,8 @@ public class Organization extends BaseElement implements IResource {
public void setName(StringDt theValue) {
myName = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for name (Name used for the organization)
*
*
@@ -171,8 +172,8 @@ public class Organization extends BaseElement implements IResource {
public void setType(CodeableConceptDt theValue) {
myType = theValue;
}
-
-
+
+
/**
* Gets the value(s) for telecom (A contact detail for the organization).
* creating it if it does
@@ -201,8 +202,8 @@ public class Organization extends BaseElement implements IResource {
public void setTelecom(List theValue) {
myTelecom = theValue;
}
-
-
+
+
/**
* Gets the value(s) for address (An address for the organization).
* creating it if it does
@@ -231,8 +232,8 @@ public class Organization extends BaseElement implements IResource {
public void setAddress(List theValue) {
myAddress = theValue;
}
-
-
+
+
/**
* Gets the value(s) for partOf (The organization of which this organization forms a part).
* creating it if it does
@@ -261,8 +262,8 @@ public class Organization extends BaseElement implements IResource {
public void setPartOf(ResourceReference theValue) {
myPartOf = theValue;
}
-
-
+
+
/**
* Gets the value(s) for contact (Contact for the organization for a certain purpose).
* creating it if it does
@@ -291,8 +292,8 @@ public class Organization extends BaseElement implements IResource {
public void setContact(List theValue) {
myContact = theValue;
}
-
-
+
+
/**
* Gets the value(s) for location (Location(s) the organization uses to provide services).
* creating it if it does
@@ -321,8 +322,8 @@ public class Organization extends BaseElement implements IResource {
public void setLocation(List theValue) {
myLocation = theValue;
}
-
-
+
+
/**
* Gets the value(s) for active (Whether the organization's record is still in active use).
* creating it if it does
@@ -351,8 +352,8 @@ public class Organization extends BaseElement implements IResource {
public void setActive(BooleanDt theValue) {
myActive = theValue;
}
-
-
+
+
/**
* Block class for child element: Organization.contact (Contact for the organization for a certain purpose)
*
@@ -407,8 +408,8 @@ public class Organization extends BaseElement implements IResource {
public void setPurpose(CodeableConceptDt theValue) {
myPurpose = theValue;
}
-
-
+
+
/**
* Gets the value(s) for name (A name associated with the contact).
* creating it if it does
@@ -437,8 +438,8 @@ public class Organization extends BaseElement implements IResource {
public void setName(HumanNameDt theValue) {
myName = theValue;
}
-
-
+
+
/**
* Gets the value(s) for telecom (Contact details (telephone, email, etc) for a contact).
* creating it if it does
@@ -467,8 +468,8 @@ public class Organization extends BaseElement implements IResource {
public void setTelecom(List theValue) {
myTelecom = theValue;
}
-
-
+
+
/**
* Gets the value(s) for address (Visiting or postal addresses for the contact).
* creating it if it does
@@ -497,8 +498,8 @@ public class Organization extends BaseElement implements IResource {
public void setAddress(AddressDt theValue) {
myAddress = theValue;
}
-
-
+
+
/**
* Gets the value(s) for gender (Gender for administrative purposes).
* creating it if it does
@@ -527,8 +528,8 @@ public class Organization extends BaseElement implements IResource {
public void setGender(CodeableConceptDt theValue) {
myGender = theValue;
}
-
-
+
+
}
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Patient.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Patient.java
index 0a31d9e4935..b59ceb37b9a 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Patient.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Patient.java
@@ -17,10 +17,12 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
+
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
+import ca.uhn.fhir.model.dstu.valueset.*;
/**
* HAPI/FHIR Patient Resource
@@ -37,7 +39,7 @@ import ca.uhn.fhir.model.dstu.composite.*;
*
*/
@ResourceDef(name="Patient")
-public class Patient extends BaseElement implements IResource {
+public class Patient extends BaseResource implements IResource {
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
private List myIdentifier;
@@ -131,8 +133,8 @@ public class Patient extends BaseElement implements IResource {
public void setIdentifier(List theValue) {
myIdentifier = theValue;
}
-
-
+
+
/**
* Gets the value(s) for name (A name associated with the patient).
* creating it if it does
@@ -161,8 +163,8 @@ public class Patient extends BaseElement implements IResource {
public void setName(List theValue) {
myName = theValue;
}
-
-
+
+
/**
* Gets the value(s) for telecom (A contact detail for the individual).
* creating it if it does
@@ -191,8 +193,8 @@ public class Patient extends BaseElement implements IResource {
public void setTelecom(List theValue) {
myTelecom = theValue;
}
-
-
+
+
/**
* Gets the value(s) for gender (Gender for administrative purposes).
* creating it if it does
@@ -221,8 +223,8 @@ public class Patient extends BaseElement implements IResource {
public void setGender(CodeableConceptDt theValue) {
myGender = theValue;
}
-
-
+
+
/**
* Gets the value(s) for birthDate (The date and time of birth for the individual).
* creating it if it does
@@ -251,8 +253,8 @@ public class Patient extends BaseElement implements IResource {
public void setBirthDate(DateTimeDt theValue) {
myBirthDate = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for birthDate (The date and time of birth for the individual)
*
*
@@ -289,8 +291,8 @@ public class Patient extends BaseElement implements IResource {
public void setDeceased(IDatatype theValue) {
myDeceased = theValue;
}
-
-
+
+
/**
* Gets the value(s) for address (Addresses for the individual).
* creating it if it does
@@ -319,8 +321,8 @@ public class Patient extends BaseElement implements IResource {
public void setAddress(List theValue) {
myAddress = theValue;
}
-
-
+
+
/**
* Gets the value(s) for maritalStatus (Marital (civil) status of a person).
* creating it if it does
@@ -349,8 +351,8 @@ public class Patient extends BaseElement implements IResource {
public void setMaritalStatus(CodeableConceptDt theValue) {
myMaritalStatus = theValue;
}
-
-
+
+
/**
* Gets the value(s) for multipleBirth[x] (Whether patient is part of a multiple birth).
* creating it if it does
@@ -376,8 +378,8 @@ public class Patient extends BaseElement implements IResource {
public void setMultipleBirth(IDatatype theValue) {
myMultipleBirth = theValue;
}
-
-
+
+
/**
* Gets the value(s) for photo (Image of the person).
* creating it if it does
@@ -406,8 +408,8 @@ public class Patient extends BaseElement implements IResource {
public void setPhoto(List theValue) {
myPhoto = theValue;
}
-
-
+
+
/**
* Gets the value(s) for contact (A contact party (e.g. guardian, partner, friend) for the patient).
* creating it if it does
@@ -436,8 +438,8 @@ public class Patient extends BaseElement implements IResource {
public void setContact(List theValue) {
myContact = theValue;
}
-
-
+
+
/**
* Gets the value(s) for animal (If this patient is an animal (non-human)).
* creating it if it does
@@ -466,8 +468,8 @@ public class Patient extends BaseElement implements IResource {
public void setAnimal(Animal theValue) {
myAnimal = theValue;
}
-
-
+
+
/**
* Gets the value(s) for communication (Languages which may be used to communicate with the patient about his or her health).
* creating it if it does
@@ -496,8 +498,8 @@ public class Patient extends BaseElement implements IResource {
public void setCommunication(List theValue) {
myCommunication = theValue;
}
-
-
+
+
/**
* Gets the value(s) for careProvider (Patient's nominated care provider).
* creating it if it does
@@ -523,8 +525,8 @@ public class Patient extends BaseElement implements IResource {
public void setCareProvider(List theValue) {
myCareProvider = theValue;
}
-
-
+
+
/**
* Gets the value(s) for managingOrganization (Organization that is the custodian of the patient record).
* creating it if it does
@@ -553,8 +555,8 @@ public class Patient extends BaseElement implements IResource {
public void setManagingOrganization(ResourceReference theValue) {
myManagingOrganization = theValue;
}
-
-
+
+
/**
* Gets the value(s) for link (Link to another patient resource that concerns the same actual person).
* creating it if it does
@@ -583,8 +585,8 @@ public class Patient extends BaseElement implements IResource {
public void setLink(List theValue) {
myLink = theValue;
}
-
-
+
+
/**
* Gets the value(s) for active (Whether this patient's record is in active use).
* creating it if it does
@@ -613,8 +615,8 @@ public class Patient extends BaseElement implements IResource {
public void setActive(BooleanDt theValue) {
myActive = theValue;
}
-
-
+
+
/**
* Block class for child element: Patient.contact (A contact party (e.g. guardian, partner, friend) for the patient)
*
@@ -675,8 +677,8 @@ public class Patient extends BaseElement implements IResource {
public void setRelationship(List theValue) {
myRelationship = theValue;
}
-
-
+
+
/**
* Gets the value(s) for name (A name associated with the person).
* creating it if it does
@@ -705,8 +707,8 @@ public class Patient extends BaseElement implements IResource {
public void setName(HumanNameDt theValue) {
myName = theValue;
}
-
-
+
+
/**
* Gets the value(s) for telecom (A contact detail for the person).
* creating it if it does
@@ -735,8 +737,8 @@ public class Patient extends BaseElement implements IResource {
public void setTelecom(List theValue) {
myTelecom = theValue;
}
-
-
+
+
/**
* Gets the value(s) for address (Address for the contact person).
* creating it if it does
@@ -765,8 +767,8 @@ public class Patient extends BaseElement implements IResource {
public void setAddress(AddressDt theValue) {
myAddress = theValue;
}
-
-
+
+
/**
* Gets the value(s) for gender (Gender for administrative purposes).
* creating it if it does
@@ -795,8 +797,8 @@ public class Patient extends BaseElement implements IResource {
public void setGender(CodeableConceptDt theValue) {
myGender = theValue;
}
-
-
+
+
/**
* Gets the value(s) for organization (Organization that is associated with the contact).
* creating it if it does
@@ -825,8 +827,8 @@ public class Patient extends BaseElement implements IResource {
public void setOrganization(ResourceReference theValue) {
myOrganization = theValue;
}
-
-
+
+
}
@@ -879,8 +881,8 @@ public class Patient extends BaseElement implements IResource {
public void setSpecies(CodeableConceptDt theValue) {
mySpecies = theValue;
}
-
-
+
+
/**
* Gets the value(s) for breed (E.g. Poodle, Angus).
* creating it if it does
@@ -909,8 +911,8 @@ public class Patient extends BaseElement implements IResource {
public void setBreed(CodeableConceptDt theValue) {
myBreed = theValue;
}
-
-
+
+
/**
* Gets the value(s) for genderStatus (E.g. Neutered, Intact).
* creating it if it does
@@ -939,8 +941,8 @@ public class Patient extends BaseElement implements IResource {
public void setGenderStatus(CodeableConceptDt theValue) {
myGenderStatus = theValue;
}
-
-
+
+
}
@@ -963,7 +965,7 @@ public class Patient extends BaseElement implements IResource {
private ResourceReference myOther;
@Child(name="type", type=CodeDt.class, order=1, min=1, max=1)
- private CodeDt myType;
+ private BoundCodeDt myType;
/**
* Gets the value(s) for other (The other patient resource that the link refers to).
@@ -993,8 +995,8 @@ public class Patient extends BaseElement implements IResource {
public void setOther(ResourceReference theValue) {
myOther = theValue;
}
-
-
+
+
/**
* Gets the value(s) for type (replace | refer | seealso - type of link).
* creating it if it does
@@ -1005,9 +1007,9 @@ public class Patient extends BaseElement implements IResource {
* The type of link between this patient resource and another patient resource.
*
*/
- public CodeDt getType() {
+ public BoundCodeDt getType() {
if (myType == null) {
- myType = new CodeDt();
+ myType = new BoundCodeDt(LinkTypeEnum.VALUESET_BINDER);
}
return myType;
}
@@ -1020,11 +1022,23 @@ public class Patient extends BaseElement implements IResource {
* The type of link between this patient resource and another patient resource.
*
*/
- public void setType(CodeDt theValue) {
+ public void setType(BoundCodeDt theValue) {
myType = theValue;
}
-
-
+
+ /**
+ * Sets the value(s) for type (replace | refer | seealso - type of link)
+ *
+ *
+ * Definition:
+ * The type of link between this patient resource and another patient resource.
+ *
+ */
+ public void setType(LinkTypeEnum theValue) {
+ getType().setValueAsEnum(theValue);
+ }
+
+
}
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Practitioner.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Practitioner.java
index 78e9c38a775..e8e5b6cf813 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Practitioner.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Practitioner.java
@@ -17,10 +17,12 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
+
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
+import ca.uhn.fhir.model.dstu.valueset.*;
/**
* HAPI/FHIR Practitioner Resource
@@ -37,7 +39,7 @@ import ca.uhn.fhir.model.dstu.composite.*;
*
*/
@ResourceDef(name="Practitioner")
-public class Practitioner extends BaseElement implements IResource {
+public class Practitioner extends BaseResource implements IResource {
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
private List myIdentifier;
@@ -115,8 +117,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setIdentifier(List theValue) {
myIdentifier = theValue;
}
-
-
+
+
/**
* Gets the value(s) for name (A name associated with the person).
* creating it if it does
@@ -145,8 +147,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setName(HumanNameDt theValue) {
myName = theValue;
}
-
-
+
+
/**
* Gets the value(s) for telecom (A contact detail for the practitioner).
* creating it if it does
@@ -175,8 +177,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setTelecom(List theValue) {
myTelecom = theValue;
}
-
-
+
+
/**
* Gets the value(s) for address (Where practitioner can be found/visited).
* creating it if it does
@@ -205,8 +207,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setAddress(AddressDt theValue) {
myAddress = theValue;
}
-
-
+
+
/**
* Gets the value(s) for gender (Gender for administrative purposes).
* creating it if it does
@@ -235,8 +237,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setGender(CodeableConceptDt theValue) {
myGender = theValue;
}
-
-
+
+
/**
* Gets the value(s) for birthDate (The date and time of birth for the practitioner).
* creating it if it does
@@ -265,8 +267,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setBirthDate(DateTimeDt theValue) {
myBirthDate = theValue;
}
-
- /**
+
+ /**
* Sets the value(s) for birthDate (The date and time of birth for the practitioner)
*
*
@@ -306,8 +308,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setPhoto(List theValue) {
myPhoto = theValue;
}
-
-
+
+
/**
* Gets the value(s) for organization (The represented organization).
* creating it if it does
@@ -336,8 +338,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setOrganization(ResourceReference theValue) {
myOrganization = theValue;
}
-
-
+
+
/**
* Gets the value(s) for role (Roles which this practitioner may perform).
* creating it if it does
@@ -366,8 +368,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setRole(List theValue) {
myRole = theValue;
}
-
-
+
+
/**
* Gets the value(s) for specialty (Specific specialty of the practitioner).
* creating it if it does
@@ -396,8 +398,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setSpecialty(List theValue) {
mySpecialty = theValue;
}
-
-
+
+
/**
* Gets the value(s) for period (The period during which the practitioner is authorized to perform in these role(s)).
* creating it if it does
@@ -426,8 +428,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setPeriod(PeriodDt theValue) {
myPeriod = theValue;
}
-
-
+
+
/**
* Gets the value(s) for location (The location(s) at which this practitioner provides care).
* creating it if it does
@@ -456,8 +458,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setLocation(List theValue) {
myLocation = theValue;
}
-
-
+
+
/**
* Gets the value(s) for qualification (Qualifications obtained by training and certification).
* creating it if it does
@@ -486,8 +488,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setQualification(List theValue) {
myQualification = theValue;
}
-
-
+
+
/**
* Gets the value(s) for communication (A language the practitioner is able to use in patient communication).
* creating it if it does
@@ -516,8 +518,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setCommunication(List theValue) {
myCommunication = theValue;
}
-
-
+
+
/**
* Block class for child element: Practitioner.qualification (Qualifications obtained by training and certification)
*
@@ -569,8 +571,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setCode(CodeableConceptDt theValue) {
myCode = theValue;
}
-
-
+
+
/**
* Gets the value(s) for period (Period during which the qualification is valid).
* creating it if it does
@@ -599,8 +601,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setPeriod(PeriodDt theValue) {
myPeriod = theValue;
}
-
-
+
+
/**
* Gets the value(s) for issuer (Organization that regulates and issues the qualification).
* creating it if it does
@@ -629,8 +631,8 @@ public class Practitioner extends BaseElement implements IResource {
public void setIssuer(ResourceReference theValue) {
myIssuer = theValue;
}
-
-
+
+
}
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Profile.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Profile.java
new file mode 100644
index 00000000000..1c13c42b822
--- /dev/null
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Profile.java
@@ -0,0 +1,3468 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+package ca.uhn.fhir.model.dstu.resource;
+
+import java.util.*;
+import ca.uhn.fhir.model.api.*;
+import ca.uhn.fhir.model.api.annotation.*;
+import ca.uhn.fhir.model.primitive.*;
+import ca.uhn.fhir.model.dstu.composite.*;
+import ca.uhn.fhir.model.dstu.valueset.*;
+
+/**
+ * HAPI/FHIR Profile Resource
+ * (Resource Profile)
+ *
+ *
+ * Definition:
+ * A Resource Profile - a statement of use of one or more FHIR Resources. It may include constraints on Resources and Data Types, Terminology Binding Statements and Extension Definitions
+ *
+ * Definition:
+ * The identifier that is used to identify this profile when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)
+ *
+ */
+ public StringDt getIdentifier() {
+ if (myIdentifier == null) {
+ myIdentifier = new StringDt();
+ }
+ return myIdentifier;
+ }
+
+ /**
+ * Sets the value(s) for identifier (Logical id to reference this profile)
+ *
+ *
+ * Definition:
+ * The identifier that is used to identify this profile when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)
+ *
+ */
+ public void setIdentifier(StringDt theValue) {
+ myIdentifier = theValue;
+ }
+
+ /**
+ * Sets the value(s) for identifier (Logical id to reference this profile)
+ *
+ *
+ * Definition:
+ * The identifier that is used to identify this profile when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)
+ *
+ */
+ public void setIdentifier( String theString) {
+ myIdentifier = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for version (Logical id for this version of the profile).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp
+ *
+ */
+ public StringDt getVersion() {
+ if (myVersion == null) {
+ myVersion = new StringDt();
+ }
+ return myVersion;
+ }
+
+ /**
+ * Sets the value(s) for version (Logical id for this version of the profile)
+ *
+ *
+ * Definition:
+ * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp
+ *
+ */
+ public void setVersion(StringDt theValue) {
+ myVersion = theValue;
+ }
+
+ /**
+ * Sets the value(s) for version (Logical id for this version of the profile)
+ *
+ *
+ * Definition:
+ * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp
+ *
+ */
+ public void setVersion( String theString) {
+ myVersion = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for name (Informal name for this profile).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * A free text natural language name identifying the Profile
+ *
+ */
+ public StringDt getName() {
+ if (myName == null) {
+ myName = new StringDt();
+ }
+ return myName;
+ }
+
+ /**
+ * Sets the value(s) for name (Informal name for this profile)
+ *
+ *
+ * Definition:
+ * A free text natural language name identifying the Profile
+ *
+ */
+ public void setName(StringDt theValue) {
+ myName = theValue;
+ }
+
+ /**
+ * Sets the value(s) for name (Informal name for this profile)
+ *
+ *
+ * Definition:
+ * A free text natural language name identifying the Profile
+ *
+ */
+ public void setName( String theString) {
+ myName = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for publisher (Name of the publisher (Organization or individual)).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Details of the individual or organization who accepts responsibility for publishing the profile
+ *
+ */
+ public StringDt getPublisher() {
+ if (myPublisher == null) {
+ myPublisher = new StringDt();
+ }
+ return myPublisher;
+ }
+
+ /**
+ * Sets the value(s) for publisher (Name of the publisher (Organization or individual))
+ *
+ *
+ * Definition:
+ * Details of the individual or organization who accepts responsibility for publishing the profile
+ *
+ */
+ public void setPublisher(StringDt theValue) {
+ myPublisher = theValue;
+ }
+
+ /**
+ * Sets the value(s) for publisher (Name of the publisher (Organization or individual))
+ *
+ *
+ * Definition:
+ * Details of the individual or organization who accepts responsibility for publishing the profile
+ *
+ */
+ public void setPublisher( String theString) {
+ myPublisher = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for telecom (Contact information of the publisher).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Contact details to assist a user in finding and communicating with the publisher
+ *
+ */
+ public List getTelecom() {
+ if (myTelecom == null) {
+ myTelecom = new ArrayList();
+ }
+ return myTelecom;
+ }
+
+ /**
+ * Sets the value(s) for telecom (Contact information of the publisher)
+ *
+ *
+ * Definition:
+ * Contact details to assist a user in finding and communicating with the publisher
+ *
+ */
+ public void setTelecom(List theValue) {
+ myTelecom = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for description (Natural language description of the profile).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * A free text natural language description of the profile and its use
+ *
+ */
+ public StringDt getDescription() {
+ if (myDescription == null) {
+ myDescription = new StringDt();
+ }
+ return myDescription;
+ }
+
+ /**
+ * Sets the value(s) for description (Natural language description of the profile)
+ *
+ *
+ * Definition:
+ * A free text natural language description of the profile and its use
+ *
+ */
+ public void setDescription(StringDt theValue) {
+ myDescription = theValue;
+ }
+
+ /**
+ * Sets the value(s) for description (Natural language description of the profile)
+ *
+ *
+ * Definition:
+ * A free text natural language description of the profile and its use
+ *
+ */
+ public void setDescription( String theString) {
+ myDescription = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for code (Assist with indexing and finding).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * A set of terms from external terminologies that may be used to assist with indexing and searching of templates.
+ *
+ */
+ public List getCode() {
+ if (myCode == null) {
+ myCode = new ArrayList();
+ }
+ return myCode;
+ }
+
+ /**
+ * Sets the value(s) for code (Assist with indexing and finding)
+ *
+ *
+ * Definition:
+ * A set of terms from external terminologies that may be used to assist with indexing and searching of templates.
+ *
+ */
+ public void setCode(List theValue) {
+ myCode = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for status (draft | active | retired).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The status of the profile
+ *
+ */
+ public BoundCodeDt getStatus() {
+ if (myStatus == null) {
+ myStatus = new BoundCodeDt(ResourceProfileStatusEnum.VALUESET_BINDER);
+ }
+ return myStatus;
+ }
+
+ /**
+ * Sets the value(s) for status (draft | active | retired)
+ *
+ *
+ * Definition:
+ * The status of the profile
+ *
+ */
+ public void setStatus(BoundCodeDt theValue) {
+ myStatus = theValue;
+ }
+
+ /**
+ * Sets the value(s) for status (draft | active | retired)
+ *
+ *
+ * Definition:
+ * The status of the profile
+ *
+ */
+ public void setStatus(ResourceProfileStatusEnum theValue) {
+ getStatus().setValueAsEnum(theValue);
+ }
+
+
+ /**
+ * Gets the value(s) for experimental (If for testing purposes, not real usage).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage
+ *
+ */
+ public BooleanDt getExperimental() {
+ if (myExperimental == null) {
+ myExperimental = new BooleanDt();
+ }
+ return myExperimental;
+ }
+
+ /**
+ * Sets the value(s) for experimental (If for testing purposes, not real usage)
+ *
+ *
+ * Definition:
+ * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage
+ *
+ */
+ public void setExperimental(BooleanDt theValue) {
+ myExperimental = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for date (Date for this version of the profile).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The date that this version of the profile was published
+ *
+ */
+ public DateTimeDt getDate() {
+ if (myDate == null) {
+ myDate = new DateTimeDt();
+ }
+ return myDate;
+ }
+
+ /**
+ * Sets the value(s) for date (Date for this version of the profile)
+ *
+ *
+ * Definition:
+ * The date that this version of the profile was published
+ *
+ */
+ public void setDate(DateTimeDt theValue) {
+ myDate = theValue;
+ }
+
+ /**
+ * Sets the value(s) for date (Date for this version of the profile)
+ *
+ *
+ * Definition:
+ * The date that this version of the profile was published
+ *
+ */
+ public void setDateWithSecondsPrecision( Date theDate) {
+ myDate = new DateTimeDt(theDate);
+ }
+
+ /**
+ * Gets the value(s) for requirements (Scope and Usage this profile is for).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The Scope and Usage that this profile was created to meet
+ *
+ */
+ public StringDt getRequirements() {
+ if (myRequirements == null) {
+ myRequirements = new StringDt();
+ }
+ return myRequirements;
+ }
+
+ /**
+ * Sets the value(s) for requirements (Scope and Usage this profile is for)
+ *
+ *
+ * Definition:
+ * The Scope and Usage that this profile was created to meet
+ *
+ */
+ public void setRequirements(StringDt theValue) {
+ myRequirements = theValue;
+ }
+
+ /**
+ * Sets the value(s) for requirements (Scope and Usage this profile is for)
+ *
+ *
+ * Definition:
+ * The Scope and Usage that this profile was created to meet
+ *
+ */
+ public void setRequirements( String theString) {
+ myRequirements = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for fhirVersion (FHIR Version this profile targets).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The version of the FHIR specification on which this profile is based
+ *
+ */
+ public IdDt getFhirVersion() {
+ if (myFhirVersion == null) {
+ myFhirVersion = new IdDt();
+ }
+ return myFhirVersion;
+ }
+
+ /**
+ * Sets the value(s) for fhirVersion (FHIR Version this profile targets)
+ *
+ *
+ * Definition:
+ * The version of the FHIR specification on which this profile is based
+ *
+ */
+ public void setFhirVersion(IdDt theValue) {
+ myFhirVersion = theValue;
+ }
+
+ /**
+ * Sets the value(s) for fhirVersion (FHIR Version this profile targets)
+ *
+ *
+ * Definition:
+ * The version of the FHIR specification on which this profile is based
+ *
+ */
+ public void setFhirVersion( String theId) {
+ myFhirVersion = new IdDt(theId);
+ }
+
+ /**
+ * Gets the value(s) for mapping (External specification that the content is mapped to).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * An external specification that the content is mapped to
+ *
+ */
+ public List getMapping() {
+ if (myMapping == null) {
+ myMapping = new ArrayList();
+ }
+ return myMapping;
+ }
+
+ /**
+ * Sets the value(s) for mapping (External specification that the content is mapped to)
+ *
+ *
+ * Definition:
+ * An external specification that the content is mapped to
+ *
+ */
+ public void setMapping(List theValue) {
+ myMapping = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for structure (A constraint on a resource or a data type).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * A constraint statement about what contents a resource or data type may have
+ *
+ */
+ public List getStructure() {
+ if (myStructure == null) {
+ myStructure = new ArrayList();
+ }
+ return myStructure;
+ }
+
+ /**
+ * Sets the value(s) for structure (A constraint on a resource or a data type)
+ *
+ *
+ * Definition:
+ * A constraint statement about what contents a resource or data type may have
+ *
+ */
+ public void setStructure(List theValue) {
+ myStructure = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for extensionDefn (Definition of an extension).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * An extension defined as part of the profile
+ *
+ */
+ public List getExtensionDefn() {
+ if (myExtensionDefn == null) {
+ myExtensionDefn = new ArrayList();
+ }
+ return myExtensionDefn;
+ }
+
+ /**
+ * Sets the value(s) for extensionDefn (Definition of an extension)
+ *
+ *
+ * Definition:
+ * An extension defined as part of the profile
+ *
+ */
+ public void setExtensionDefn(List theValue) {
+ myExtensionDefn = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for query (Definition of a named query).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Definition of a named query and its parameters and their meaning
+ *
+ */
+ public List getQuery() {
+ if (myQuery == null) {
+ myQuery = new ArrayList();
+ }
+ return myQuery;
+ }
+
+ /**
+ * Sets the value(s) for query (Definition of a named query)
+ *
+ *
+ * Definition:
+ * Definition of a named query and its parameters and their meaning
+ *
+ */
+ public void setQuery(List theValue) {
+ myQuery = theValue;
+ }
+
+
+ /**
+ * Block class for child element: Profile.mapping (External specification that the content is mapped to)
+ *
+ *
+ * Definition:
+ * An external specification that the content is mapped to
+ *
+ */
+ @Block(name="Profile.mapping")
+ public static class Mapping extends BaseElement implements IResourceBlock {
+
+ @Child(name="identity", type=IdDt.class, order=0, min=1, max=1)
+ private IdDt myIdentity;
+
+ @Child(name="uri", type=UriDt.class, order=1, min=0, max=1)
+ private UriDt myUri;
+
+ @Child(name="name", type=StringDt.class, order=2, min=0, max=1)
+ private StringDt myName;
+
+ @Child(name="comments", type=StringDt.class, order=3, min=0, max=1)
+ private StringDt myComments;
+
+ /**
+ * Gets the value(s) for identity (Internal id when this mapping is used).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * An Internal id that is used to identify this mapping set when specific mappings are made
+ *
+ */
+ public IdDt getIdentity() {
+ if (myIdentity == null) {
+ myIdentity = new IdDt();
+ }
+ return myIdentity;
+ }
+
+ /**
+ * Sets the value(s) for identity (Internal id when this mapping is used)
+ *
+ *
+ * Definition:
+ * An Internal id that is used to identify this mapping set when specific mappings are made
+ *
+ */
+ public void setIdentity(IdDt theValue) {
+ myIdentity = theValue;
+ }
+
+ /**
+ * Sets the value(s) for identity (Internal id when this mapping is used)
+ *
+ *
+ * Definition:
+ * An Internal id that is used to identify this mapping set when specific mappings are made
+ *
+ */
+ public void setIdentity( String theId) {
+ myIdentity = new IdDt(theId);
+ }
+
+ /**
+ * Gets the value(s) for uri (Identifies what this mapping refers to).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * A URI that identifies the specification that this mapping is expressed to
+ *
+ */
+ public UriDt getUri() {
+ if (myUri == null) {
+ myUri = new UriDt();
+ }
+ return myUri;
+ }
+
+ /**
+ * Sets the value(s) for uri (Identifies what this mapping refers to)
+ *
+ *
+ * Definition:
+ * A URI that identifies the specification that this mapping is expressed to
+ *
+ */
+ public void setUri(UriDt theValue) {
+ myUri = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for name (Names what this mapping refers to).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * A name for the specification that is being mapped to
+ *
+ */
+ public StringDt getName() {
+ if (myName == null) {
+ myName = new StringDt();
+ }
+ return myName;
+ }
+
+ /**
+ * Sets the value(s) for name (Names what this mapping refers to)
+ *
+ *
+ * Definition:
+ * A name for the specification that is being mapped to
+ *
+ */
+ public void setName(StringDt theValue) {
+ myName = theValue;
+ }
+
+ /**
+ * Sets the value(s) for name (Names what this mapping refers to)
+ *
+ *
+ * Definition:
+ * A name for the specification that is being mapped to
+ *
+ */
+ public void setName( String theString) {
+ myName = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for comments (Versions, Issues, Scope limitations etc).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage
+ *
+ */
+ public StringDt getComments() {
+ if (myComments == null) {
+ myComments = new StringDt();
+ }
+ return myComments;
+ }
+
+ /**
+ * Sets the value(s) for comments (Versions, Issues, Scope limitations etc)
+ *
+ *
+ * Definition:
+ * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage
+ *
+ * Definition:
+ * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage
+ *
+ */
+ public void setComments( String theString) {
+ myComments = new StringDt(theString);
+ }
+
+
+ }
+
+
+ /**
+ * Block class for child element: Profile.structure (A constraint on a resource or a data type)
+ *
+ *
+ * Definition:
+ * A constraint statement about what contents a resource or data type may have
+ *
+ */
+ @Block(name="Profile.structure")
+ public static class Structure extends BaseElement implements IResourceBlock {
+
+ @Child(name="type", type=CodeDt.class, order=0, min=1, max=1)
+ private BoundCodeDt myType;
+
+ @Child(name="name", type=StringDt.class, order=1, min=0, max=1)
+ private StringDt myName;
+
+ @Child(name="publish", type=BooleanDt.class, order=2, min=0, max=1)
+ private BooleanDt myPublish;
+
+ @Child(name="purpose", type=StringDt.class, order=3, min=0, max=1)
+ private StringDt myPurpose;
+
+ @Child(name="element", order=4, min=0, max=Child.MAX_UNLIMITED)
+ private List myElement;
+
+ @Child(name="searchParam", order=5, min=0, max=Child.MAX_UNLIMITED)
+ private List mySearchParam;
+
+ /**
+ * Gets the value(s) for type (The Resource or Data Type being described).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The Resource or Data type being described
+ *
+ */
+ public BoundCodeDt getType() {
+ if (myType == null) {
+ myType = new BoundCodeDt(FHIRDefinedTypeEnum.VALUESET_BINDER);
+ }
+ return myType;
+ }
+
+ /**
+ * Sets the value(s) for type (The Resource or Data Type being described)
+ *
+ *
+ * Definition:
+ * The Resource or Data type being described
+ *
+ */
+ public void setType(BoundCodeDt theValue) {
+ myType = theValue;
+ }
+
+ /**
+ * Sets the value(s) for type (The Resource or Data Type being described)
+ *
+ *
+ * Definition:
+ * The Resource or Data type being described
+ *
+ */
+ public void setType(FHIRDefinedTypeEnum theValue) {
+ getType().setValueAsEnum(theValue);
+ }
+
+
+ /**
+ * Gets the value(s) for name (Name for this particular structure (reference target)).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The name of this resource constraint statement (to refer to it from other resource constraints - from Profile.structure.element.definition.type.profile)
+ *
+ */
+ public StringDt getName() {
+ if (myName == null) {
+ myName = new StringDt();
+ }
+ return myName;
+ }
+
+ /**
+ * Sets the value(s) for name (Name for this particular structure (reference target))
+ *
+ *
+ * Definition:
+ * The name of this resource constraint statement (to refer to it from other resource constraints - from Profile.structure.element.definition.type.profile)
+ *
+ */
+ public void setName(StringDt theValue) {
+ myName = theValue;
+ }
+
+ /**
+ * Sets the value(s) for name (Name for this particular structure (reference target))
+ *
+ *
+ * Definition:
+ * The name of this resource constraint statement (to refer to it from other resource constraints - from Profile.structure.element.definition.type.profile)
+ *
+ */
+ public void setName( String theString) {
+ myName = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for publish (This definition is published (i.e. for validation)).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * This definition of a profile on a structure is published as a formal statement. Some structural definitions might be defined purely for internal use within the profile, and not intended to be used outside that context
+ *
+ */
+ public BooleanDt getPublish() {
+ if (myPublish == null) {
+ myPublish = new BooleanDt();
+ }
+ return myPublish;
+ }
+
+ /**
+ * Sets the value(s) for publish (This definition is published (i.e. for validation))
+ *
+ *
+ * Definition:
+ * This definition of a profile on a structure is published as a formal statement. Some structural definitions might be defined purely for internal use within the profile, and not intended to be used outside that context
+ *
+ */
+ public void setPublish(BooleanDt theValue) {
+ myPublish = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for purpose (Human summary: why describe this resource?).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Human summary: why describe this resource?
+ *
+ */
+ public StringDt getPurpose() {
+ if (myPurpose == null) {
+ myPurpose = new StringDt();
+ }
+ return myPurpose;
+ }
+
+ /**
+ * Sets the value(s) for purpose (Human summary: why describe this resource?)
+ *
+ *
+ * Definition:
+ * Human summary: why describe this resource?
+ *
+ */
+ public void setPurpose(StringDt theValue) {
+ myPurpose = theValue;
+ }
+
+ /**
+ * Sets the value(s) for purpose (Human summary: why describe this resource?)
+ *
+ *
+ * Definition:
+ * Human summary: why describe this resource?
+ *
+ */
+ public void setPurpose( String theString) {
+ myPurpose = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for element (Definition of elements in the resource (if no profile)).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Captures constraints on each element within the resource
+ *
+ */
+ public List getElement() {
+ if (myElement == null) {
+ myElement = new ArrayList();
+ }
+ return myElement;
+ }
+
+ /**
+ * Sets the value(s) for element (Definition of elements in the resource (if no profile))
+ *
+ *
+ * Definition:
+ * Captures constraints on each element within the resource
+ *
+ */
+ public void setElement(List theValue) {
+ myElement = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for searchParam (Search params defined).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Additional search parameters for implementations to support and/or make use of
+ *
+ */
+ public List getSearchParam() {
+ if (mySearchParam == null) {
+ mySearchParam = new ArrayList();
+ }
+ return mySearchParam;
+ }
+
+ /**
+ * Sets the value(s) for searchParam (Search params defined)
+ *
+ *
+ * Definition:
+ * Additional search parameters for implementations to support and/or make use of
+ *
+ */
+ public void setSearchParam(List theValue) {
+ mySearchParam = theValue;
+ }
+
+
+
+ }
+
+ /**
+ * Block class for child element: Profile.structure.element (Definition of elements in the resource (if no profile))
+ *
+ *
+ * Definition:
+ * Captures constraints on each element within the resource
+ *
+ */
+ @Block(name="Profile.structure.element")
+ public static class StructureElement extends BaseElement implements IResourceBlock {
+
+ @Child(name="path", type=StringDt.class, order=0, min=1, max=1)
+ private StringDt myPath;
+
+ @Child(name="representation", type=CodeDt.class, order=1, min=0, max=Child.MAX_UNLIMITED)
+ private List> myRepresentation;
+
+ @Child(name="name", type=StringDt.class, order=2, min=0, max=1)
+ private StringDt myName;
+
+ @Child(name="slicing", order=3, min=0, max=1)
+ private StructureElementSlicing mySlicing;
+
+ @Child(name="definition", order=4, min=0, max=1)
+ private StructureElementDefinition myDefinition;
+
+ /**
+ * Gets the value(s) for path (The path of the element (see the formal definitions)).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource
+ *
+ */
+ public StringDt getPath() {
+ if (myPath == null) {
+ myPath = new StringDt();
+ }
+ return myPath;
+ }
+
+ /**
+ * Sets the value(s) for path (The path of the element (see the formal definitions))
+ *
+ *
+ * Definition:
+ * The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource
+ *
+ */
+ public void setPath(StringDt theValue) {
+ myPath = theValue;
+ }
+
+ /**
+ * Sets the value(s) for path (The path of the element (see the formal definitions))
+ *
+ *
+ * Definition:
+ * The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource
+ *
+ */
+ public void setPath( String theString) {
+ myPath = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for representation (How this element is represented in instances).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Codes that define how this element is represented in instances, when the deviation varies from the normal case
+ *
+ */
+ public List> getRepresentation() {
+ if (myRepresentation == null) {
+ myRepresentation = new ArrayList>();
+ }
+ return myRepresentation;
+ }
+
+ /**
+ * Sets the value(s) for representation (How this element is represented in instances)
+ *
+ *
+ * Definition:
+ * Codes that define how this element is represented in instances, when the deviation varies from the normal case
+ *
+ */
+ public void setRepresentation(List> theValue) {
+ myRepresentation = theValue;
+ }
+
+ /**
+ * Add a value for representation (How this element is represented in instances)
+ *
+ *
+ * Definition:
+ * Codes that define how this element is represented in instances, when the deviation varies from the normal case
+ *
+ */
+ public void addRepresentation(PropertyRepresentationEnum theValue) {
+ getRepresentation().add(new BoundCodeDt(PropertyRepresentationEnum.VALUESET_BINDER, theValue));
+ }
+
+ /**
+ * Sets the value(s), and clears any existing value(s) for representation (How this element is represented in instances)
+ *
+ *
+ * Definition:
+ * Codes that define how this element is represented in instances, when the deviation varies from the normal case
+ *
+ */
+ public void setRepresentation(PropertyRepresentationEnum theValue) {
+ getRepresentation().clear();
+ addRepresentation(theValue);
+ }
+
+
+ /**
+ * Gets the value(s) for name (Name for this particular element definition (reference target)).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The name of this element definition (to refer to it from other element definitions using Profile.structure.element.definition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element
+ *
+ */
+ public StringDt getName() {
+ if (myName == null) {
+ myName = new StringDt();
+ }
+ return myName;
+ }
+
+ /**
+ * Sets the value(s) for name (Name for this particular element definition (reference target))
+ *
+ *
+ * Definition:
+ * The name of this element definition (to refer to it from other element definitions using Profile.structure.element.definition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element
+ *
+ */
+ public void setName(StringDt theValue) {
+ myName = theValue;
+ }
+
+ /**
+ * Sets the value(s) for name (Name for this particular element definition (reference target))
+ *
+ *
+ * Definition:
+ * The name of this element definition (to refer to it from other element definitions using Profile.structure.element.definition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element
+ *
+ */
+ public void setName( String theString) {
+ myName = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for slicing (This element is sliced - slices follow).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set)
+ *
+ */
+ public StructureElementSlicing getSlicing() {
+ if (mySlicing == null) {
+ mySlicing = new StructureElementSlicing();
+ }
+ return mySlicing;
+ }
+
+ /**
+ * Sets the value(s) for slicing (This element is sliced - slices follow)
+ *
+ *
+ * Definition:
+ * Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set)
+ *
+ */
+ public void setSlicing(StructureElementSlicing theValue) {
+ mySlicing = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for definition (More specific definition of the element ).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Definition of the content of the element to provide a more specific definition than that contained for the element in the base resource
+ *
+ */
+ public StructureElementDefinition getDefinition() {
+ if (myDefinition == null) {
+ myDefinition = new StructureElementDefinition();
+ }
+ return myDefinition;
+ }
+
+ /**
+ * Sets the value(s) for definition (More specific definition of the element )
+ *
+ *
+ * Definition:
+ * Definition of the content of the element to provide a more specific definition than that contained for the element in the base resource
+ *
+ */
+ public void setDefinition(StructureElementDefinition theValue) {
+ myDefinition = theValue;
+ }
+
+
+
+ }
+
+ /**
+ * Block class for child element: Profile.structure.element.slicing (This element is sliced - slices follow)
+ *
+ *
+ * Definition:
+ * Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set)
+ *
+ */
+ @Block(name="Profile.structure.element.slicing")
+ public static class StructureElementSlicing extends BaseElement implements IResourceBlock {
+
+ @Child(name="discriminator", type=IdDt.class, order=0, min=1, max=1)
+ private IdDt myDiscriminator;
+
+ @Child(name="ordered", type=BooleanDt.class, order=1, min=1, max=1)
+ private BooleanDt myOrdered;
+
+ @Child(name="rules", type=CodeDt.class, order=2, min=1, max=1)
+ private BoundCodeDt myRules;
+
+ /**
+ * Gets the value(s) for discriminator (Element that used to distinguish the slices).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Designates which child element is used to discriminate between the slices when processing an instance. The value of the child element in the instance SHALL completely distinguish which slice the element in the resource matches based on the allowed values for that element in each of the slices
+ *
+ */
+ public IdDt getDiscriminator() {
+ if (myDiscriminator == null) {
+ myDiscriminator = new IdDt();
+ }
+ return myDiscriminator;
+ }
+
+ /**
+ * Sets the value(s) for discriminator (Element that used to distinguish the slices)
+ *
+ *
+ * Definition:
+ * Designates which child element is used to discriminate between the slices when processing an instance. The value of the child element in the instance SHALL completely distinguish which slice the element in the resource matches based on the allowed values for that element in each of the slices
+ *
+ */
+ public void setDiscriminator(IdDt theValue) {
+ myDiscriminator = theValue;
+ }
+
+ /**
+ * Sets the value(s) for discriminator (Element that used to distinguish the slices)
+ *
+ *
+ * Definition:
+ * Designates which child element is used to discriminate between the slices when processing an instance. The value of the child element in the instance SHALL completely distinguish which slice the element in the resource matches based on the allowed values for that element in each of the slices
+ *
+ */
+ public void setDiscriminator( String theId) {
+ myDiscriminator = new IdDt(theId);
+ }
+
+ /**
+ * Gets the value(s) for ordered (If elements must be in same order as slices).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * If the matching elements have to occur in the same order as defined in the profile
+ *
+ */
+ public BooleanDt getOrdered() {
+ if (myOrdered == null) {
+ myOrdered = new BooleanDt();
+ }
+ return myOrdered;
+ }
+
+ /**
+ * Sets the value(s) for ordered (If elements must be in same order as slices)
+ *
+ *
+ * Definition:
+ * If the matching elements have to occur in the same order as defined in the profile
+ *
+ */
+ public void setOrdered(BooleanDt theValue) {
+ myOrdered = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for rules (closed | open | openAtEnd).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end
+ *
+ */
+ public BoundCodeDt getRules() {
+ if (myRules == null) {
+ myRules = new BoundCodeDt(SlicingRulesEnum.VALUESET_BINDER);
+ }
+ return myRules;
+ }
+
+ /**
+ * Sets the value(s) for rules (closed | open | openAtEnd)
+ *
+ *
+ * Definition:
+ * Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end
+ *
+ */
+ public void setRules(BoundCodeDt theValue) {
+ myRules = theValue;
+ }
+
+ /**
+ * Sets the value(s) for rules (closed | open | openAtEnd)
+ *
+ *
+ * Definition:
+ * Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end
+ *
+ */
+ public void setRules(SlicingRulesEnum theValue) {
+ getRules().setValueAsEnum(theValue);
+ }
+
+
+
+ }
+
+
+ /**
+ * Block class for child element: Profile.structure.element.definition (More specific definition of the element )
+ *
+ *
+ * Definition:
+ * Definition of the content of the element to provide a more specific definition than that contained for the element in the base resource
+ *
+ * Definition:
+ * A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification)
+ *
+ */
+ public StringDt getShort() {
+ if (myShort == null) {
+ myShort = new StringDt();
+ }
+ return myShort;
+ }
+
+ /**
+ * Sets the value(s) for short (Concise definition for xml presentation)
+ *
+ *
+ * Definition:
+ * A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification)
+ *
+ */
+ public void setShort(StringDt theValue) {
+ myShort = theValue;
+ }
+
+ /**
+ * Sets the value(s) for short (Concise definition for xml presentation)
+ *
+ *
+ * Definition:
+ * A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification)
+ *
+ */
+ public void setShort( String theString) {
+ myShort = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for formal (Full formal definition in human language).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource
+ *
+ */
+ public StringDt getFormal() {
+ if (myFormal == null) {
+ myFormal = new StringDt();
+ }
+ return myFormal;
+ }
+
+ /**
+ * Sets the value(s) for formal (Full formal definition in human language)
+ *
+ *
+ * Definition:
+ * The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource
+ *
+ */
+ public void setFormal(StringDt theValue) {
+ myFormal = theValue;
+ }
+
+ /**
+ * Sets the value(s) for formal (Full formal definition in human language)
+ *
+ *
+ * Definition:
+ * The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource
+ *
+ */
+ public void setFormal( String theString) {
+ myFormal = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for comments (Comments about the use of this element).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc.
+ *
+ */
+ public StringDt getComments() {
+ if (myComments == null) {
+ myComments = new StringDt();
+ }
+ return myComments;
+ }
+
+ /**
+ * Sets the value(s) for comments (Comments about the use of this element)
+ *
+ *
+ * Definition:
+ * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc.
+ *
+ */
+ public void setComments(StringDt theValue) {
+ myComments = theValue;
+ }
+
+ /**
+ * Sets the value(s) for comments (Comments about the use of this element)
+ *
+ *
+ * Definition:
+ * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc.
+ *
+ */
+ public void setComments( String theString) {
+ myComments = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for requirements (Why is this needed?).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Explains why this element is needed and why it's been constrained as it has
+ *
+ */
+ public StringDt getRequirements() {
+ if (myRequirements == null) {
+ myRequirements = new StringDt();
+ }
+ return myRequirements;
+ }
+
+ /**
+ * Sets the value(s) for requirements (Why is this needed?)
+ *
+ *
+ * Definition:
+ * Explains why this element is needed and why it's been constrained as it has
+ *
+ */
+ public void setRequirements(StringDt theValue) {
+ myRequirements = theValue;
+ }
+
+ /**
+ * Sets the value(s) for requirements (Why is this needed?)
+ *
+ *
+ * Definition:
+ * Explains why this element is needed and why it's been constrained as it has
+ *
+ */
+ public void setRequirements( String theString) {
+ myRequirements = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for synonym (Other names).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Identifies additional names by which this element might also be known
+ *
+ */
+ public List getSynonym() {
+ if (mySynonym == null) {
+ mySynonym = new ArrayList();
+ }
+ return mySynonym;
+ }
+
+ /**
+ * Sets the value(s) for synonym (Other names)
+ *
+ *
+ * Definition:
+ * Identifies additional names by which this element might also be known
+ *
+ */
+ public void setSynonym(List theValue) {
+ mySynonym = theValue;
+ }
+
+ /**
+ * Sets the value(s) for synonym (Other names)
+ *
+ *
+ * Definition:
+ * Identifies additional names by which this element might also be known
+ *
+ */
+ public void addSynonym( String theString) {
+ if (mySynonym == null) {
+ mySynonym = new ArrayList();
+ }
+ mySynonym.add(new StringDt(theString));
+ }
+
+ /**
+ * Gets the value(s) for min (Minimum Cardinality).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The minimum number of times this element SHALL appear in the instance
+ *
+ */
+ public IntegerDt getMin() {
+ if (myMin == null) {
+ myMin = new IntegerDt();
+ }
+ return myMin;
+ }
+
+ /**
+ * Sets the value(s) for min (Minimum Cardinality)
+ *
+ *
+ * Definition:
+ * The minimum number of times this element SHALL appear in the instance
+ *
+ */
+ public void setMin(IntegerDt theValue) {
+ myMin = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for max (Maximum Cardinality (a number or *)).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The maximum number of times this element is permitted to appear in the instance
+ *
+ */
+ public StringDt getMax() {
+ if (myMax == null) {
+ myMax = new StringDt();
+ }
+ return myMax;
+ }
+
+ /**
+ * Sets the value(s) for max (Maximum Cardinality (a number or *))
+ *
+ *
+ * Definition:
+ * The maximum number of times this element is permitted to appear in the instance
+ *
+ */
+ public void setMax(StringDt theValue) {
+ myMax = theValue;
+ }
+
+ /**
+ * Sets the value(s) for max (Maximum Cardinality (a number or *))
+ *
+ *
+ * Definition:
+ * The maximum number of times this element is permitted to appear in the instance
+ *
+ */
+ public void setMax( String theString) {
+ myMax = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for type (Data type and Profile for this element).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The data type or resource that the value of this element is permitted to be
+ *
+ */
+ public List getType() {
+ if (myType == null) {
+ myType = new ArrayList();
+ }
+ return myType;
+ }
+
+ /**
+ * Sets the value(s) for type (Data type and Profile for this element)
+ *
+ *
+ * Definition:
+ * The data type or resource that the value of this element is permitted to be
+ *
+ */
+ public void setType(List theValue) {
+ myType = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for nameReference (To another element constraint (by element.name)).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element
+ *
+ */
+ public StringDt getNameReference() {
+ if (myNameReference == null) {
+ myNameReference = new StringDt();
+ }
+ return myNameReference;
+ }
+
+ /**
+ * Sets the value(s) for nameReference (To another element constraint (by element.name))
+ *
+ *
+ * Definition:
+ * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element
+ *
+ */
+ public void setNameReference(StringDt theValue) {
+ myNameReference = theValue;
+ }
+
+ /**
+ * Sets the value(s) for nameReference (To another element constraint (by element.name))
+ *
+ *
+ * Definition:
+ * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element
+ *
+ */
+ public void setNameReference( String theString) {
+ myNameReference = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for value[x] (Fixed value: [as defined for a primitive type]).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Specifies a primitive value that SHALL hold for this element in the instance
+ *
+ */
+ public IDatatype getValue() {
+ return myValue;
+ }
+
+ /**
+ * Sets the value(s) for value[x] (Fixed value: [as defined for a primitive type])
+ *
+ *
+ * Definition:
+ * Specifies a primitive value that SHALL hold for this element in the instance
+ *
+ */
+ public void setValue(IDatatype theValue) {
+ myValue = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for example[x] (Example value: [as defined for type]).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * An example value for this element
+ *
+ */
+ public IDatatype getExample() {
+ return myExample;
+ }
+
+ /**
+ * Sets the value(s) for example[x] (Example value: [as defined for type])
+ *
+ *
+ * Definition:
+ * An example value for this element
+ *
+ */
+ public void setExample(IDatatype theValue) {
+ myExample = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for maxLength (Length for strings).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Indicates the shortest length that SHALL be supported by conformant instances without truncation
+ *
+ */
+ public IntegerDt getMaxLength() {
+ if (myMaxLength == null) {
+ myMaxLength = new IntegerDt();
+ }
+ return myMaxLength;
+ }
+
+ /**
+ * Sets the value(s) for maxLength (Length for strings)
+ *
+ *
+ * Definition:
+ * Indicates the shortest length that SHALL be supported by conformant instances without truncation
+ *
+ */
+ public void setMaxLength(IntegerDt theValue) {
+ myMaxLength = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for condition (Reference to invariant about presence).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * A reference to an invariant that may make additional statements about the cardinality or value in the instance
+ *
+ */
+ public List getCondition() {
+ if (myCondition == null) {
+ myCondition = new ArrayList();
+ }
+ return myCondition;
+ }
+
+ /**
+ * Sets the value(s) for condition (Reference to invariant about presence)
+ *
+ *
+ * Definition:
+ * A reference to an invariant that may make additional statements about the cardinality or value in the instance
+ *
+ */
+ public void setCondition(List theValue) {
+ myCondition = theValue;
+ }
+
+ /**
+ * Sets the value(s) for condition (Reference to invariant about presence)
+ *
+ *
+ * Definition:
+ * A reference to an invariant that may make additional statements about the cardinality or value in the instance
+ *
+ */
+ public void addCondition( String theId) {
+ if (myCondition == null) {
+ myCondition = new ArrayList();
+ }
+ myCondition.add(new IdDt(theId));
+ }
+
+ /**
+ * Gets the value(s) for constraint (Condition that must evaluate to true).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance
+ *
+ */
+ public List getConstraint() {
+ if (myConstraint == null) {
+ myConstraint = new ArrayList();
+ }
+ return myConstraint;
+ }
+
+ /**
+ * Sets the value(s) for constraint (Condition that must evaluate to true)
+ *
+ *
+ * Definition:
+ * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance
+ *
+ */
+ public void setConstraint(List theValue) {
+ myConstraint = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for mustSupport (If the element must supported).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported
+ *
+ */
+ public BooleanDt getMustSupport() {
+ if (myMustSupport == null) {
+ myMustSupport = new BooleanDt();
+ }
+ return myMustSupport;
+ }
+
+ /**
+ * Sets the value(s) for mustSupport (If the element must supported)
+ *
+ *
+ * Definition:
+ * If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported
+ *
+ */
+ public void setMustSupport(BooleanDt theValue) {
+ myMustSupport = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for isModifier (If this modifies the meaning of other elements).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system.
+ *
+ */
+ public BooleanDt getIsModifier() {
+ if (myIsModifier == null) {
+ myIsModifier = new BooleanDt();
+ }
+ return myIsModifier;
+ }
+
+ /**
+ * Sets the value(s) for isModifier (If this modifies the meaning of other elements)
+ *
+ *
+ * Definition:
+ * If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system.
+ *
+ */
+ public void setIsModifier(BooleanDt theValue) {
+ myIsModifier = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for binding (ValueSet details if this is coded).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Binds to a value set if this element is coded (code, Coding, CodeableConcept)
+ *
+ */
+ public StructureElementDefinitionBinding getBinding() {
+ if (myBinding == null) {
+ myBinding = new StructureElementDefinitionBinding();
+ }
+ return myBinding;
+ }
+
+ /**
+ * Sets the value(s) for binding (ValueSet details if this is coded)
+ *
+ *
+ * Definition:
+ * Binds to a value set if this element is coded (code, Coding, CodeableConcept)
+ *
+ */
+ public void setBinding(StructureElementDefinitionBinding theValue) {
+ myBinding = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for mapping (Map element to another set of definitions).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Identifies a concept from an external specification that roughly corresponds to this element
+ *
+ */
+ public List getMapping() {
+ if (myMapping == null) {
+ myMapping = new ArrayList();
+ }
+ return myMapping;
+ }
+
+ /**
+ * Sets the value(s) for mapping (Map element to another set of definitions)
+ *
+ *
+ * Definition:
+ * Identifies a concept from an external specification that roughly corresponds to this element
+ *
+ */
+ public void setMapping(List theValue) {
+ myMapping = theValue;
+ }
+
+
+
+ }
+
+ /**
+ * Block class for child element: Profile.structure.element.definition.type (Data type and Profile for this element)
+ *
+ *
+ * Definition:
+ * The data type or resource that the value of this element is permitted to be
+ *
+ */
+ @Block(name="Profile.structure.element.definition.type")
+ public static class StructureElementDefinitionType extends BaseElement implements IResourceBlock {
+
+ @Child(name="code", type=CodeDt.class, order=0, min=1, max=1)
+ private BoundCodeDt myCode;
+
+ @Child(name="profile", type=UriDt.class, order=1, min=0, max=1)
+ private UriDt myProfile;
+
+ @Child(name="aggregation", type=CodeDt.class, order=2, min=0, max=Child.MAX_UNLIMITED)
+ private List> myAggregation;
+
+ /**
+ * Gets the value(s) for code (Name of Data type or Resource).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ *
+ *
+ */
+ public BoundCodeDt getCode() {
+ if (myCode == null) {
+ myCode = new BoundCodeDt(DataTypeEnum.VALUESET_BINDER);
+ }
+ return myCode;
+ }
+
+ /**
+ * Sets the value(s) for code (Name of Data type or Resource)
+ *
+ *
+ * Definition:
+ *
+ *
+ */
+ public void setCode(BoundCodeDt theValue) {
+ myCode = theValue;
+ }
+
+ /**
+ * Sets the value(s) for code (Name of Data type or Resource)
+ *
+ *
+ * Definition:
+ *
+ *
+ */
+ public void setCode(DataTypeEnum theValue) {
+ getCode().setValueAsEnum(theValue);
+ }
+
+
+ /**
+ * Gets the value(s) for profile (Profile.structure to apply).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Identifies a profile that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile
+ *
+ */
+ public UriDt getProfile() {
+ if (myProfile == null) {
+ myProfile = new UriDt();
+ }
+ return myProfile;
+ }
+
+ /**
+ * Sets the value(s) for profile (Profile.structure to apply)
+ *
+ *
+ * Definition:
+ * Identifies a profile that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile
+ *
+ */
+ public void setProfile(UriDt theValue) {
+ myProfile = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for aggregation (contained | referenced | bundled - how aggregated).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle
+ *
+ */
+ public List> getAggregation() {
+ if (myAggregation == null) {
+ myAggregation = new ArrayList>();
+ }
+ return myAggregation;
+ }
+
+ /**
+ * Sets the value(s) for aggregation (contained | referenced | bundled - how aggregated)
+ *
+ *
+ * Definition:
+ * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle
+ *
+ */
+ public void setAggregation(List> theValue) {
+ myAggregation = theValue;
+ }
+
+ /**
+ * Add a value for aggregation (contained | referenced | bundled - how aggregated)
+ *
+ *
+ * Definition:
+ * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle
+ *
+ */
+ public void addAggregation(AggregationModeEnum theValue) {
+ getAggregation().add(new BoundCodeDt(AggregationModeEnum.VALUESET_BINDER, theValue));
+ }
+
+ /**
+ * Sets the value(s), and clears any existing value(s) for aggregation (contained | referenced | bundled - how aggregated)
+ *
+ *
+ * Definition:
+ * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle
+ *
+ */
+ public void setAggregation(AggregationModeEnum theValue) {
+ getAggregation().clear();
+ addAggregation(theValue);
+ }
+
+
+
+ }
+
+
+ /**
+ * Block class for child element: Profile.structure.element.definition.constraint (Condition that must evaluate to true)
+ *
+ *
+ * Definition:
+ * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance
+ *
+ */
+ @Block(name="Profile.structure.element.definition.constraint")
+ public static class StructureElementDefinitionConstraint extends BaseElement implements IResourceBlock {
+
+ @Child(name="key", type=IdDt.class, order=0, min=1, max=1)
+ private IdDt myKey;
+
+ @Child(name="name", type=StringDt.class, order=1, min=0, max=1)
+ private StringDt myName;
+
+ @Child(name="severity", type=CodeDt.class, order=2, min=1, max=1)
+ private BoundCodeDt mySeverity;
+
+ @Child(name="human", type=StringDt.class, order=3, min=1, max=1)
+ private StringDt myHuman;
+
+ @Child(name="xpath", type=StringDt.class, order=4, min=1, max=1)
+ private StringDt myXpath;
+
+ /**
+ * Gets the value(s) for key (Target of 'condition' reference above).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality
+ *
+ */
+ public IdDt getKey() {
+ if (myKey == null) {
+ myKey = new IdDt();
+ }
+ return myKey;
+ }
+
+ /**
+ * Sets the value(s) for key (Target of 'condition' reference above)
+ *
+ *
+ * Definition:
+ * Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality
+ *
+ */
+ public void setKey(IdDt theValue) {
+ myKey = theValue;
+ }
+
+ /**
+ * Sets the value(s) for key (Target of 'condition' reference above)
+ *
+ *
+ * Definition:
+ * Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality
+ *
+ */
+ public void setKey( String theId) {
+ myKey = new IdDt(theId);
+ }
+
+ /**
+ * Gets the value(s) for name (Short human label).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Used to label the constraint in OCL or in short displays incapable of displaying the full human description
+ *
+ */
+ public StringDt getName() {
+ if (myName == null) {
+ myName = new StringDt();
+ }
+ return myName;
+ }
+
+ /**
+ * Sets the value(s) for name (Short human label)
+ *
+ *
+ * Definition:
+ * Used to label the constraint in OCL or in short displays incapable of displaying the full human description
+ *
+ */
+ public void setName(StringDt theValue) {
+ myName = theValue;
+ }
+
+ /**
+ * Sets the value(s) for name (Short human label)
+ *
+ *
+ * Definition:
+ * Used to label the constraint in OCL or in short displays incapable of displaying the full human description
+ *
+ */
+ public void setName( String theString) {
+ myName = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for severity (error | warning).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Identifies the impact constraint violation has on the conformance of the instance
+ *
+ */
+ public BoundCodeDt getSeverity() {
+ if (mySeverity == null) {
+ mySeverity = new BoundCodeDt(ConstraintSeverityEnum.VALUESET_BINDER);
+ }
+ return mySeverity;
+ }
+
+ /**
+ * Sets the value(s) for severity (error | warning)
+ *
+ *
+ * Definition:
+ * Identifies the impact constraint violation has on the conformance of the instance
+ *
+ * Definition:
+ * Identifies the impact constraint violation has on the conformance of the instance
+ *
+ */
+ public void setSeverity(ConstraintSeverityEnum theValue) {
+ getSeverity().setValueAsEnum(theValue);
+ }
+
+
+ /**
+ * Gets the value(s) for human (Human description of constraint).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Text that can be used to describe the constraint in messages identifying that the constraint has been violated
+ *
+ */
+ public StringDt getHuman() {
+ if (myHuman == null) {
+ myHuman = new StringDt();
+ }
+ return myHuman;
+ }
+
+ /**
+ * Sets the value(s) for human (Human description of constraint)
+ *
+ *
+ * Definition:
+ * Text that can be used to describe the constraint in messages identifying that the constraint has been violated
+ *
+ */
+ public void setHuman(StringDt theValue) {
+ myHuman = theValue;
+ }
+
+ /**
+ * Sets the value(s) for human (Human description of constraint)
+ *
+ *
+ * Definition:
+ * Text that can be used to describe the constraint in messages identifying that the constraint has been violated
+ *
+ */
+ public void setHuman( String theString) {
+ myHuman = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for xpath (XPath expression of constraint).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ */
+ public void setXpath( String theString) {
+ myXpath = new StringDt(theString);
+ }
+
+
+ }
+
+
+ /**
+ * Block class for child element: Profile.structure.element.definition.binding (ValueSet details if this is coded)
+ *
+ *
+ * Definition:
+ * Binds to a value set if this element is coded (code, Coding, CodeableConcept)
+ *
+ */
+ @Block(name="Profile.structure.element.definition.binding")
+ public static class StructureElementDefinitionBinding extends BaseElement implements IResourceBlock {
+
+ @Child(name="name", type=StringDt.class, order=0, min=1, max=1)
+ private StringDt myName;
+
+ @Child(name="isExtensible", type=BooleanDt.class, order=1, min=1, max=1)
+ private BooleanDt myIsExtensible;
+
+ @Child(name="conformance", type=CodeDt.class, order=2, min=0, max=1)
+ private BoundCodeDt myConformance;
+
+ @Child(name="description", type=StringDt.class, order=3, min=0, max=1)
+ private StringDt myDescription;
+
+ @Child(name="reference", order=4, min=0, max=1, choice=@Choice(types= {
+ UriDt.class,
+ ValueSet.class,
+ }))
+ private IDatatype myReference;
+
+ /**
+ * Gets the value(s) for name (Descriptive Name).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * A descriptive name for this - can be useful for generating implementation artifacts
+ *
+ */
+ public StringDt getName() {
+ if (myName == null) {
+ myName = new StringDt();
+ }
+ return myName;
+ }
+
+ /**
+ * Sets the value(s) for name (Descriptive Name)
+ *
+ *
+ * Definition:
+ * A descriptive name for this - can be useful for generating implementation artifacts
+ *
+ */
+ public void setName(StringDt theValue) {
+ myName = theValue;
+ }
+
+ /**
+ * Sets the value(s) for name (Descriptive Name)
+ *
+ *
+ * Definition:
+ * A descriptive name for this - can be useful for generating implementation artifacts
+ *
+ */
+ public void setName( String theString) {
+ myName = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for isExtensible (Can additional codes be used?).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone
+ *
+ */
+ public BooleanDt getIsExtensible() {
+ if (myIsExtensible == null) {
+ myIsExtensible = new BooleanDt();
+ }
+ return myIsExtensible;
+ }
+
+ /**
+ * Sets the value(s) for isExtensible (Can additional codes be used?)
+ *
+ *
+ * Definition:
+ * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone
+ *
+ */
+ public void setIsExtensible(BooleanDt theValue) {
+ myIsExtensible = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for conformance (required | preferred | example).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Indicates the degree of conformance expectations associated with this binding
+ *
+ */
+ public BoundCodeDt getConformance() {
+ if (myConformance == null) {
+ myConformance = new BoundCodeDt(BindingConformanceEnum.VALUESET_BINDER);
+ }
+ return myConformance;
+ }
+
+ /**
+ * Sets the value(s) for conformance (required | preferred | example)
+ *
+ *
+ * Definition:
+ * Indicates the degree of conformance expectations associated with this binding
+ *
+ * Definition:
+ * Indicates the degree of conformance expectations associated with this binding
+ *
+ */
+ public void setConformance(BindingConformanceEnum theValue) {
+ getConformance().setValueAsEnum(theValue);
+ }
+
+
+ /**
+ * Gets the value(s) for description (Human explanation of the value set).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Describes the intended use of this particular set of codes
+ *
+ */
+ public StringDt getDescription() {
+ if (myDescription == null) {
+ myDescription = new StringDt();
+ }
+ return myDescription;
+ }
+
+ /**
+ * Sets the value(s) for description (Human explanation of the value set)
+ *
+ *
+ * Definition:
+ * Describes the intended use of this particular set of codes
+ *
+ */
+ public void setDescription(StringDt theValue) {
+ myDescription = theValue;
+ }
+
+ /**
+ * Sets the value(s) for description (Human explanation of the value set)
+ *
+ *
+ * Definition:
+ * Describes the intended use of this particular set of codes
+ *
+ */
+ public void setDescription( String theString) {
+ myDescription = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for reference[x] (Source of value set).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Points to the value set or external definition that identifies the set of codes to be used
+ *
+ */
+ public IDatatype getReference() {
+ return myReference;
+ }
+
+ /**
+ * Sets the value(s) for reference[x] (Source of value set)
+ *
+ *
+ * Definition:
+ * Points to the value set or external definition that identifies the set of codes to be used
+ *
+ */
+ public void setReference(IDatatype theValue) {
+ myReference = theValue;
+ }
+
+
+
+ }
+
+
+ /**
+ * Block class for child element: Profile.structure.element.definition.mapping (Map element to another set of definitions)
+ *
+ *
+ * Definition:
+ * Identifies a concept from an external specification that roughly corresponds to this element
+ *
+ */
+ @Block(name="Profile.structure.element.definition.mapping")
+ public static class StructureElementDefinitionMapping extends BaseElement implements IResourceBlock {
+
+ @Child(name="identity", type=IdDt.class, order=0, min=1, max=1)
+ private IdDt myIdentity;
+
+ @Child(name="map", type=StringDt.class, order=1, min=1, max=1)
+ private StringDt myMap;
+
+ /**
+ * Gets the value(s) for identity (Reference to mapping declaration).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * An internal reference to the definition of a mapping
+ *
+ */
+ public IdDt getIdentity() {
+ if (myIdentity == null) {
+ myIdentity = new IdDt();
+ }
+ return myIdentity;
+ }
+
+ /**
+ * Sets the value(s) for identity (Reference to mapping declaration)
+ *
+ *
+ * Definition:
+ * An internal reference to the definition of a mapping
+ *
+ */
+ public void setIdentity(IdDt theValue) {
+ myIdentity = theValue;
+ }
+
+ /**
+ * Sets the value(s) for identity (Reference to mapping declaration)
+ *
+ *
+ * Definition:
+ * An internal reference to the definition of a mapping
+ *
+ */
+ public void setIdentity( String theId) {
+ myIdentity = new IdDt(theId);
+ }
+
+ /**
+ * Gets the value(s) for map (Details of the mapping).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Expresses what part of the target specification corresponds to this element
+ *
+ */
+ public StringDt getMap() {
+ if (myMap == null) {
+ myMap = new StringDt();
+ }
+ return myMap;
+ }
+
+ /**
+ * Sets the value(s) for map (Details of the mapping)
+ *
+ *
+ * Definition:
+ * Expresses what part of the target specification corresponds to this element
+ *
+ */
+ public void setMap(StringDt theValue) {
+ myMap = theValue;
+ }
+
+ /**
+ * Sets the value(s) for map (Details of the mapping)
+ *
+ *
+ * Definition:
+ * Expresses what part of the target specification corresponds to this element
+ *
+ * Definition:
+ * Additional search parameters for implementations to support and/or make use of
+ *
+ */
+ @Block(name="Profile.structure.searchParam")
+ public static class StructureSearchParam extends BaseElement implements IResourceBlock {
+
+ @Child(name="name", type=StringDt.class, order=0, min=1, max=1)
+ private StringDt myName;
+
+ @Child(name="type", type=CodeDt.class, order=1, min=1, max=1)
+ private BoundCodeDt myType;
+
+ @Child(name="documentation", type=StringDt.class, order=2, min=1, max=1)
+ private StringDt myDocumentation;
+
+ @Child(name="xpath", type=StringDt.class, order=3, min=0, max=1)
+ private StringDt myXpath;
+
+ @Child(name="target", type=CodeDt.class, order=4, min=0, max=Child.MAX_UNLIMITED)
+ private List> myTarget;
+
+ /**
+ * Gets the value(s) for name (Name of search parameter).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The name of the standard or custom search parameter
+ *
+ */
+ public StringDt getName() {
+ if (myName == null) {
+ myName = new StringDt();
+ }
+ return myName;
+ }
+
+ /**
+ * Sets the value(s) for name (Name of search parameter)
+ *
+ *
+ * Definition:
+ * The name of the standard or custom search parameter
+ *
+ */
+ public void setName(StringDt theValue) {
+ myName = theValue;
+ }
+
+ /**
+ * Sets the value(s) for name (Name of search parameter)
+ *
+ *
+ * Definition:
+ * The name of the standard or custom search parameter
+ *
+ */
+ public void setName( String theString) {
+ myName = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for type (number | date | string | token | reference | composite | quantity).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The type of value a search parameter refers to, and how the content is interpreted
+ *
+ */
+ public BoundCodeDt getType() {
+ if (myType == null) {
+ myType = new BoundCodeDt(SearchParamTypeEnum.VALUESET_BINDER);
+ }
+ return myType;
+ }
+
+ /**
+ * Sets the value(s) for type (number | date | string | token | reference | composite | quantity)
+ *
+ *
+ * Definition:
+ * The type of value a search parameter refers to, and how the content is interpreted
+ *
+ */
+ public void setType(BoundCodeDt theValue) {
+ myType = theValue;
+ }
+
+ /**
+ * Sets the value(s) for type (number | date | string | token | reference | composite | quantity)
+ *
+ *
+ * Definition:
+ * The type of value a search parameter refers to, and how the content is interpreted
+ *
+ */
+ public void setType(SearchParamTypeEnum theValue) {
+ getType().setValueAsEnum(theValue);
+ }
+
+
+ /**
+ * Gets the value(s) for documentation (Contents and meaning of search parameter).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * A specification for search parameters. For standard parameters, provides additional information on how the parameter is used in this solution. For custom parameters, provides a description of what the parameter does
+ *
+ */
+ public StringDt getDocumentation() {
+ if (myDocumentation == null) {
+ myDocumentation = new StringDt();
+ }
+ return myDocumentation;
+ }
+
+ /**
+ * Sets the value(s) for documentation (Contents and meaning of search parameter)
+ *
+ *
+ * Definition:
+ * A specification for search parameters. For standard parameters, provides additional information on how the parameter is used in this solution. For custom parameters, provides a description of what the parameter does
+ *
+ */
+ public void setDocumentation(StringDt theValue) {
+ myDocumentation = theValue;
+ }
+
+ /**
+ * Sets the value(s) for documentation (Contents and meaning of search parameter)
+ *
+ *
+ * Definition:
+ * A specification for search parameters. For standard parameters, provides additional information on how the parameter is used in this solution. For custom parameters, provides a description of what the parameter does
+ *
+ */
+ public void setDocumentation( String theString) {
+ myDocumentation = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for xpath (XPath that extracts the parameter set).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * An XPath expression that returns a set of elements for the search parameter
+ *
+ */
+ public StringDt getXpath() {
+ if (myXpath == null) {
+ myXpath = new StringDt();
+ }
+ return myXpath;
+ }
+
+ /**
+ * Sets the value(s) for xpath (XPath that extracts the parameter set)
+ *
+ *
+ * Definition:
+ * An XPath expression that returns a set of elements for the search parameter
+ *
+ */
+ public void setXpath(StringDt theValue) {
+ myXpath = theValue;
+ }
+
+ /**
+ * Sets the value(s) for xpath (XPath that extracts the parameter set)
+ *
+ *
+ * Definition:
+ * An XPath expression that returns a set of elements for the search parameter
+ *
+ */
+ public void setXpath( String theString) {
+ myXpath = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for target (Types of resource (if a resource reference)).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Types of resource (if a resource is referenced)
+ *
+ */
+ public List> getTarget() {
+ if (myTarget == null) {
+ myTarget = new ArrayList>();
+ }
+ return myTarget;
+ }
+
+ /**
+ * Sets the value(s) for target (Types of resource (if a resource reference))
+ *
+ *
+ * Definition:
+ * Types of resource (if a resource is referenced)
+ *
+ */
+ public void setTarget(List> theValue) {
+ myTarget = theValue;
+ }
+
+ /**
+ * Add a value for target (Types of resource (if a resource reference))
+ *
+ *
+ * Definition:
+ * Types of resource (if a resource is referenced)
+ *
+ */
+ public void addTarget(ResourceTypeEnum theValue) {
+ getTarget().add(new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER, theValue));
+ }
+
+ /**
+ * Sets the value(s), and clears any existing value(s) for target (Types of resource (if a resource reference))
+ *
+ *
+ * Definition:
+ * Types of resource (if a resource is referenced)
+ *
+ */
+ public void setTarget(ResourceTypeEnum theValue) {
+ getTarget().clear();
+ addTarget(theValue);
+ }
+
+
+
+ }
+
+
+
+ /**
+ * Block class for child element: Profile.extensionDefn (Definition of an extension)
+ *
+ *
+ * Definition:
+ * An extension defined as part of the profile
+ *
+ */
+ @Block(name="Profile.extensionDefn")
+ public static class ExtensionDefn extends BaseElement implements IResourceBlock {
+
+ @Child(name="code", type=CodeDt.class, order=0, min=1, max=1)
+ private CodeDt myCode;
+
+ @Child(name="display", type=StringDt.class, order=1, min=0, max=1)
+ private StringDt myDisplay;
+
+ @Child(name="contextType", type=CodeDt.class, order=2, min=1, max=1)
+ private BoundCodeDt myContextType;
+
+ @Child(name="context", type=StringDt.class, order=3, min=1, max=Child.MAX_UNLIMITED)
+ private List myContext;
+
+ @Child(name="definition", type=StructureElementDefinition.class, order=4, min=1, max=1)
+ private StructureElementDefinition myDefinition;
+
+ /**
+ * Gets the value(s) for code (Identifies the extension in this profile).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * A unique code (within the profile) used to identify the extension
+ *
+ */
+ public CodeDt getCode() {
+ if (myCode == null) {
+ myCode = new CodeDt();
+ }
+ return myCode;
+ }
+
+ /**
+ * Sets the value(s) for code (Identifies the extension in this profile)
+ *
+ *
+ * Definition:
+ * A unique code (within the profile) used to identify the extension
+ *
+ */
+ public void setCode(CodeDt theValue) {
+ myCode = theValue;
+ }
+
+
+ /**
+ * Gets the value(s) for display (Use this name when displaying the value).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Defined so that applications can use this name when displaying the value of the extension to the user
+ *
+ */
+ public StringDt getDisplay() {
+ if (myDisplay == null) {
+ myDisplay = new StringDt();
+ }
+ return myDisplay;
+ }
+
+ /**
+ * Sets the value(s) for display (Use this name when displaying the value)
+ *
+ *
+ * Definition:
+ * Defined so that applications can use this name when displaying the value of the extension to the user
+ *
+ */
+ public void setDisplay(StringDt theValue) {
+ myDisplay = theValue;
+ }
+
+ /**
+ * Sets the value(s) for display (Use this name when displaying the value)
+ *
+ *
+ * Definition:
+ * Defined so that applications can use this name when displaying the value of the extension to the user
+ *
+ */
+ public void setDisplay( String theString) {
+ myDisplay = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for contextType (resource | datatype | mapping | extension).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Identifies the type of context to which the extension applies
+ *
+ */
+ public BoundCodeDt getContextType() {
+ if (myContextType == null) {
+ myContextType = new BoundCodeDt(ExtensionContextEnum.VALUESET_BINDER);
+ }
+ return myContextType;
+ }
+
+ /**
+ * Sets the value(s) for contextType (resource | datatype | mapping | extension)
+ *
+ *
+ * Definition:
+ * Identifies the type of context to which the extension applies
+ *
+ * Definition:
+ * Identifies the type of context to which the extension applies
+ *
+ */
+ public void setContextType(ExtensionContextEnum theValue) {
+ getContextType().setValueAsEnum(theValue);
+ }
+
+
+ /**
+ * Gets the value(s) for context (Where the extension can be used in instances).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Identifies the types of resource or data type elements to which the extension can be applied
+ *
+ */
+ public List getContext() {
+ if (myContext == null) {
+ myContext = new ArrayList();
+ }
+ return myContext;
+ }
+
+ /**
+ * Sets the value(s) for context (Where the extension can be used in instances)
+ *
+ *
+ * Definition:
+ * Identifies the types of resource or data type elements to which the extension can be applied
+ *
+ */
+ public void setContext(List theValue) {
+ myContext = theValue;
+ }
+
+ /**
+ * Sets the value(s) for context (Where the extension can be used in instances)
+ *
+ *
+ * Definition:
+ * Identifies the types of resource or data type elements to which the extension can be applied
+ *
+ */
+ public void addContext( String theString) {
+ if (myContext == null) {
+ myContext = new ArrayList();
+ }
+ myContext.add(new StringDt(theString));
+ }
+
+ /**
+ * Gets the value(s) for definition (Definition of the extension and its content).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Definition of the extension and its content
+ *
+ */
+ public StructureElementDefinition getDefinition() {
+ if (myDefinition == null) {
+ myDefinition = new StructureElementDefinition();
+ }
+ return myDefinition;
+ }
+
+ /**
+ * Sets the value(s) for definition (Definition of the extension and its content)
+ *
+ *
+ * Definition:
+ * Definition of the extension and its content
+ *
+ */
+ public void setDefinition(StructureElementDefinition theValue) {
+ myDefinition = theValue;
+ }
+
+
+
+ }
+
+
+ /**
+ * Block class for child element: Profile.query (Definition of a named query)
+ *
+ *
+ * Definition:
+ * Definition of a named query and its parameters and their meaning
+ *
+ */
+ @Block(name="Profile.query")
+ public static class Query extends BaseElement implements IResourceBlock {
+
+ @Child(name="name", type=StringDt.class, order=0, min=1, max=1)
+ private StringDt myName;
+
+ @Child(name="documentation", type=StringDt.class, order=1, min=1, max=1)
+ private StringDt myDocumentation;
+
+ @Child(name="parameter", type=StructureSearchParam.class, order=2, min=0, max=Child.MAX_UNLIMITED)
+ private List myParameter;
+
+ /**
+ * Gets the value(s) for name (Special named queries (_query=)).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * The name of a query, which is used in the URI from Conformance statements declaring use of the query. Typically this will also be the name for the _query parameter when the query is called, though in some cases it may be aliased by a server to avoid collisions
+ *
+ */
+ public StringDt getName() {
+ if (myName == null) {
+ myName = new StringDt();
+ }
+ return myName;
+ }
+
+ /**
+ * Sets the value(s) for name (Special named queries (_query=))
+ *
+ *
+ * Definition:
+ * The name of a query, which is used in the URI from Conformance statements declaring use of the query. Typically this will also be the name for the _query parameter when the query is called, though in some cases it may be aliased by a server to avoid collisions
+ *
+ */
+ public void setName(StringDt theValue) {
+ myName = theValue;
+ }
+
+ /**
+ * Sets the value(s) for name (Special named queries (_query=))
+ *
+ *
+ * Definition:
+ * The name of a query, which is used in the URI from Conformance statements declaring use of the query. Typically this will also be the name for the _query parameter when the query is called, though in some cases it may be aliased by a server to avoid collisions
+ *
+ */
+ public void setName( String theString) {
+ myName = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for documentation (Describes the named query).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * Description of the query - the functionality it offers, and considerations about how it functions and to use it
+ *
+ */
+ public StringDt getDocumentation() {
+ if (myDocumentation == null) {
+ myDocumentation = new StringDt();
+ }
+ return myDocumentation;
+ }
+
+ /**
+ * Sets the value(s) for documentation (Describes the named query)
+ *
+ *
+ * Definition:
+ * Description of the query - the functionality it offers, and considerations about how it functions and to use it
+ *
+ */
+ public void setDocumentation(StringDt theValue) {
+ myDocumentation = theValue;
+ }
+
+ /**
+ * Sets the value(s) for documentation (Describes the named query)
+ *
+ *
+ * Definition:
+ * Description of the query - the functionality it offers, and considerations about how it functions and to use it
+ *
+ */
+ public void setDocumentation( String theString) {
+ myDocumentation = new StringDt(theString);
+ }
+
+ /**
+ * Gets the value(s) for parameter (Parameter for the named query).
+ * creating it if it does
+ * not exist. Will not return null.
+ *
+ *
+ * Definition:
+ * A parameter of a named query
+ *
+ */
+ public List getParameter() {
+ if (myParameter == null) {
+ myParameter = new ArrayList();
+ }
+ return myParameter;
+ }
+
+ /**
+ * Sets the value(s) for parameter (Parameter for the named query)
+ *
+ *
+ * Definition:
+ * A parameter of a named query
+ *
*/
@ResourceDef(name="Specimen")
-public class Specimen extends BaseElement implements IResource {
+public class Specimen extends BaseResource implements IResource {
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
private List myIdentifier;
@@ -100,8 +102,8 @@ public class Specimen extends BaseElement implements IResource {
public void setIdentifier(List theValue) {
myIdentifier = theValue;
}
-
-
+
+
/**
* Gets the value(s) for type (Kind of material that forms the specimen).
* creating it if it does
@@ -130,8 +132,8 @@ public class Specimen extends BaseElement implements IResource {
public void setType(CodeableConceptDt theValue) {
myType = theValue;
}
-
-
+
+
/**
* Gets the value(s) for source (Parent of specimen).
* creating it if it does
@@ -160,8 +162,8 @@ public class Specimen extends BaseElement implements IResource {
public void setSource(List