Class ChEmedExtensionReference
java.lang.Object
org.hl7.fhir.r4.model.Base
org.hl7.fhir.r4.model.Element
org.hl7.fhir.r4.model.BackboneElement
org.projecthusky.fhir.emed.ch.epr.resource.extension.ChEmedExtensionReference
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseBackboneElement
,org.hl7.fhir.instance.model.api.IBaseElement
,org.hl7.fhir.instance.model.api.IBaseHasExtensions
,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
- Direct Known Subclasses:
ChEmedExtDispense
,ChEmedExtPharmaceuticalAdvice
,ChEmedExtPrescription
,ChEmedExtTreatmentPlan
public abstract class ChEmedExtensionReference
extends org.hl7.fhir.r4.model.BackboneElement
The HAPI custom structure for CH-EMED-Extension. Extension to represent the reference to the document
- Author:
- Ronaldo Loureiro
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable org.hl7.fhir.r4.model.Identifier
ID of the document.static final String
protected @Nullable org.hl7.fhir.r4.model.Identifier
ID of the external document.static final String
Fields inherited from class org.hl7.fhir.r4.model.BackboneElement
modifierExtension
Fields inherited from class org.hl7.fhir.r4.model.Element
extension, id
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructorChEmedExtensionReference
(UUID id, UUID externalDocumentId) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyValues
(org.hl7.fhir.r4.model.BackboneElement dst) abstract EmedEntryType
org.hl7.fhir.r4.model.Identifier
Gets the extension id element.org.hl7.fhir.r4.model.Identifier
Gets the external document id element.boolean
Returns whether ID of the document exists.boolean
Returns whether ID of the external document exists.boolean
isEmpty()
Resolves the ID of the external document.Resolves the ID of the document.Resolves the eMed reference.setExtensionId
(UUID extensionId) Sets the ID of the document, if it already exists, it is replaced.setExternalDocumentId
(UUID externalDocumentId) Sets the ID of the external document, if it already exists, it is replaced.Methods inherited from class org.hl7.fhir.r4.model.BackboneElement
addChild, addModifierExtension, addModifierExtension, addModifierExtension, checkNoModifiers, copy, copyExtensions, copyNewExtensions, equalsDeep, equalsShallow, fhirType, getExtensionByUrl, getExtensionsByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionFirstRep, getNamedProperty, getProperty, getTypesForProperty, hasExtension, hasExtension, hasModifierExtension, listChildren, makeProperty, removeChild, removeExtension, setModifierExtension, setProperty, setProperty
Methods inherited from class org.hl7.fhir.r4.model.Element
addExtension, addExtension, addExtension, copyExtensions, copyNewExtensions, copyValues, getExtension, getExtensionFirstRep, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement
Methods inherited from class org.hl7.fhir.r4.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getXhtml, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseHasExtensions
addExtension, getExtension, hasExtension
-
Field Details
-
ID_URL
- See Also:
-
EXTERNAL_DOCUMENT_ID_URL
- See Also:
-
extensionId
protected @Nullable org.hl7.fhir.r4.model.Identifier extensionIdID of the document. -
externalDocumentId
protected @Nullable org.hl7.fhir.r4.model.Identifier externalDocumentIdID of the external document.
-
-
Constructor Details
-
ChEmedExtensionReference
public ChEmedExtensionReference()Empty constructor -
ChEmedExtensionReference
Constructor- Parameters:
id
- the ID of the document.externalDocumentId
- the ID of the external document.
-
-
Method Details
-
resolveIdentifier
Resolves the ID of the document.- Returns:
- the ID of the document.
- Throws:
InvalidEmedContentException
- if the ID of the document is missing or invalid.
-
resolveExternalDocumentId
Resolves the ID of the external document.- Returns:
- the ID of the external document.
- Throws:
InvalidEmedContentException
- if the ID of the external document is missing or invalid.
-
resolveReference
Resolves the eMed reference.- Returns:
- the eMed reference.
- Throws:
InvalidEmedContentException
- if the IDs are missing.
-
getExtensionIdElement
public org.hl7.fhir.r4.model.Identifier getExtensionIdElement()Gets the extension id element. If it doesn't exist, it is created.- Returns:
- the extension id element.
-
getExternalDocumentIdElement
public org.hl7.fhir.r4.model.Identifier getExternalDocumentIdElement()Gets the external document id element. If it doesn't exist, it is created.- Returns:
- the external document id element.
-
setExtensionId
Sets the ID of the document, if it already exists, it is replaced.- Parameters:
extensionId
- the ID of the document.- Returns:
- this.
-
setExternalDocumentId
Sets the ID of the external document, if it already exists, it is replaced.- Parameters:
externalDocumentId
- the ID of the external document.- Returns:
- this.
-
hasExtensionId
public boolean hasExtensionId()Returns whether ID of the document exists.- Returns:
true
if the ID of the document exists,false
otherwise.
-
hasExternalDocumentId
public boolean hasExternalDocumentId()Returns whether ID of the external document exists.- Returns:
true
if the ID of the external document exists,false
otherwise.
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
isEmpty
in classorg.hl7.fhir.r4.model.BackboneElement
-
getEntryType
-
copyValues
public void copyValues(org.hl7.fhir.r4.model.BackboneElement dst) - Overrides:
copyValues
in classorg.hl7.fhir.r4.model.BackboneElement
-