
Package org.hl7.fhir.r5.elementmodel
Class Property
java.lang.Object
org.hl7.fhir.r5.elementmodel.Property
-
Constructor Summary
ConstructorsConstructorDescriptionProperty(IWorkerContext context, ElementDefinition definition, StructureDefinition structure) Property(IWorkerContext context, ElementDefinition definition, StructureDefinition structure, ProfileUtilities profileUtilities, ContextUtilities utils) Property(IWorkerContext context, ElementDefinition definition, StructureDefinition structure, ProfileUtilities profileUtilities, ContextUtilities utils, String type) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetChild(String name, TypeDetails type) getChildProperties(String elementName, String statedType) getChildSimpleName(String elementName, String name) getName()getType()List<org.hl7.fhir.utilities.StringPair> getUtils()booleanbooleanbooleanbooleanbooleanbooleanisChoice()booleanbooleanThis handles a very special case: An extension used with json extensions in CDS hooks, where the extension definition, not the base, decides whether it's an array or notbooleanbooleanisList()booleanbooleanbooleanbooleanbooleanisPrimitive(String code) Is the given type a primitivebooleanisPrimitiveName(String name) Is the given name a primitivebooleanbooleanbooleansummary()toString()booleantypeIsConsistent(String typeName)
-
Constructor Details
-
Property
public Property(IWorkerContext context, ElementDefinition definition, StructureDefinition structure, ProfileUtilities profileUtilities, ContextUtilities utils) -
Property
public Property(IWorkerContext context, ElementDefinition definition, StructureDefinition structure, ProfileUtilities profileUtilities, ContextUtilities utils, String type) -
Property
public Property(IWorkerContext context, ElementDefinition definition, StructureDefinition structure)
-
-
Method Details
-
getName
-
getJsonName
-
getXmlName
-
getXmlNamespace
-
getDefinition
-
getType
-
getType
-
typeIsConsistent
-
hasType
-
getStructure
-
isPrimitiveName
Is the given name a primitive- Parameters:
E- .g. "Observation.status"
-
isPrimitive
Is the given type a primitive- Parameters:
E- .g. "integer"
-
isPrimitive
-
isResource
-
isList
-
isJsonList
This handles a very special case: An extension used with json extensions in CDS hooks, where the extension definition, not the base, decides whether it's an array or not- Returns:
-
isBaseList
-
getScopedPropertyName
-
IsLogicalAndHasPrimitiveValue
-
isChoice
-
getChildProperties
public List<Property> getChildProperties(String elementName, String statedType) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
getChildProperties
protected List<Property> getChildProperties(TypeDetails type) throws org.hl7.fhir.exceptions.DefinitionException - Throws:
org.hl7.fhir.exceptions.DefinitionException
-
getChild
public Property getChild(String elementName, String childName) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
getChild
public Property getChild(String name, TypeDetails type) throws org.hl7.fhir.exceptions.DefinitionException - Throws:
org.hl7.fhir.exceptions.DefinitionException
-
getChild
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getChildSimpleName
public Property getChildSimpleName(String elementName, String name) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
getContext
-
toString
-
isJsonKeyArray
-
getJsonKeyProperty
-
hasTypeSpecifier
-
getTypeSpecifiers
-
cloneToType
-
hasImpliedPrefix
-
getImpliedPrefix
-
isNullable
-
summary
-
canBeEmpty
-
isLogical
-
getUtils
-
getContextUtils
-
isJsonPrimitiveChoice
-
typeSummary
-
hasJsonName
-
isTranslatable
-
getXmlTypeName
-
isReference
-
canBeType
-
getExtensionStyle
-