Package org.hl7.fhir.dstu2.model
Class Property
java.lang.Object
org.hl7.fhir.dstu2.model.Property
A child element or property defined by the FHIR specification This class is
defined as a helper class when iterating the children of an element in a
generic fashion
At present, iteration is only based on the specification, but this may be
changed to allow profile based expression at a later date
note: there's no point in creating one of these classes outside this package
-
Constructor Summary
ConstructorDescriptionProperty
(String name, String typeCode, String definition, int minCardinality, int maxCardinality, List<? extends Base> values) Internal constructorProperty
(String name, String typeCode, String definition, int minCardinality, int maxCardinality, Base value) Internal constructor -
Method Summary
Modifier and TypeMethodDescriptionint
int
getName()
boolean
void
setStructure
(StructureDefinition structure)
-
Constructor Details
-
Property
public Property(String name, String typeCode, String definition, int minCardinality, int maxCardinality, Base value) Internal constructor -
Property
public Property(String name, String typeCode, String definition, int minCardinality, int maxCardinality, List<? extends Base> values) Internal constructor
-
-
Method Details
-
getName
- Returns:
- The name of this property in the FHIR Specification
-
getTypeCode
- Returns:
- The stated type in the FHIR specification
-
getDefinition
- Returns:
- The definition of this element in the FHIR spec
-
getMinCardinality
- Returns:
- the minimum cardinality for this element
-
getMaxCardinality
- Returns:
- the maximum cardinality for this element
-
getValues
- Returns:
- the actual values - will only be 1 unless maximum cardinality == MAX_INT
-
hasValues
-
getStructure
-
setStructure
-