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

    Fields
    Modifier and Type
    Field
    Description
    protected @Nullable org.hl7.fhir.r4.model.Identifier
    ID of the document.
    protected @Nullable org.hl7.fhir.r4.model.Identifier
    ID of the external document.

    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

    Constructors
    Constructor
    Description
    Empty constructor
    ChEmedExtensionReference(UUID id, UUID externalDocumentId)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
     
    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

    • extensionId

      protected @Nullable org.hl7.fhir.r4.model.Identifier extensionId
      ID of the document.
    • externalDocumentId

      protected @Nullable org.hl7.fhir.r4.model.Identifier externalDocumentId
      ID of the external document.
  • Constructor Details

    • ChEmedExtensionReference

      public ChEmedExtensionReference()
      Empty constructor
    • ChEmedExtensionReference

      public ChEmedExtensionReference(UUID id, UUID externalDocumentId)
      Constructor
      Parameters:
      id - the ID of the document.
      externalDocumentId - the ID of the external document.
  • Method Details

    • resolveIdentifier

      @ExpectsValidResource public UUID resolveIdentifier() throws InvalidEmedContentException
      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

      @ExpectsValidResource public UUID resolveExternalDocumentId() throws InvalidEmedContentException
      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

      public ChEmedExtensionReference setExtensionId(UUID extensionId)
      Sets the ID of the document, if it already exists, it is replaced.
      Parameters:
      extensionId - the ID of the document.
      Returns:
      this.
    • setExternalDocumentId

      public ChEmedExtensionReference setExternalDocumentId(UUID externalDocumentId)
      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 interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class org.hl7.fhir.r4.model.BackboneElement
    • getEntryType

      public abstract EmedEntryType getEntryType()
    • copyValues

      public void copyValues(org.hl7.fhir.r4.model.BackboneElement dst)
      Overrides:
      copyValues in class org.hl7.fhir.r4.model.BackboneElement