Class ChVacdAbstractDocument

java.lang.Object
org.hl7.fhir.r4.model.Base
org.hl7.fhir.r4.model.BaseResource
org.hl7.fhir.r4.model.Resource
All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IAnyResource, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseBundle, org.hl7.fhir.instance.model.api.IBaseResource
Direct Known Subclasses:
ChVacdImmunizationAdministrationDocument, ChVacdVaccinationRecordDocument

public abstract class ChVacdAbstractDocument extends ChCoreDocumentEpr
The HAPI custom structure for CH-VACD ImmunizationAdministrationDocument.
Author:
Roeland Luykx
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.hl7.fhir.r4.model.Bundle

    org.hl7.fhir.r4.model.Bundle.BundleEntryComponent, org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent, org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent, org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent, org.hl7.fhir.r4.model.Bundle.BundleLinkComponent, org.hl7.fhir.r4.model.Bundle.BundleType, org.hl7.fhir.r4.model.Bundle.BundleTypeEnumFactory, org.hl7.fhir.r4.model.Bundle.HTTPVerb, org.hl7.fhir.r4.model.Bundle.HTTPVerbEnumFactory, org.hl7.fhir.r4.model.Bundle.SearchEntryMode, org.hl7.fhir.r4.model.Bundle.SearchEntryModeEnumFactory
  • Field Summary

    Fields inherited from class org.hl7.fhir.r4.model.Bundle

    COMPOSITION, entry, identifier, IDENTIFIER, INCLUDE_COMPOSITION, INCLUDE_MESSAGE, link, MESSAGE, signature, SP_COMPOSITION, SP_IDENTIFIER, SP_MESSAGE, SP_TIMESTAMP, SP_TYPE, timestamp, TIMESTAMP, total, type, TYPE

    Fields inherited from class org.hl7.fhir.r4.model.Resource

    id, implicitRules, language, meta

    Fields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource

    RES_ID, RES_LAST_UPDATED, RES_PROFILE, RES_SECURITY, RES_TAG, SP_RES_ID, SP_RES_LAST_UPDATED, SP_RES_PROFILE, SP_RES_SECURITY, SP_RES_TAG

    Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseBundle

    LINK_NEXT, LINK_PREV, LINK_SELF

    Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource

    INCLUDE_ALL, WILDCARD_ALL_SET
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Method to create and add AllergyIntolerance.
    void
    Method to add AllergyIntolerance resource.
    void
    addAuthor(org.hl7.fhir.r4.model.DomainResource author, Date timeOfDataInput)
     
    Adds a basic immunization to the document.
    void
    Adds a basic immunization to the document.
    Adds an immunization to the document.
    void
    Adds an immunization to the document.
    Method to create and add LaboratoryAndSerology
    void
    Method to add LaboratoryAndSerology
    Method to create and add a MedicalProblem
    void
    Method to add a MedicalProblem
    Method to create and add PastIllness resource.
    void
    Method to add PastIllness resource.
    Method to get list of ChVacdAllergyIntolerance resources.
    get all basic immunization resources from the document.
    Returns the composition or throws.
    get all immunization resources from the document.
    Method get a list of LaboratoryAndSerology
    Method get a list of MedicalProblems
     
    void
    setPatient(org.hl7.fhir.r4.model.Patient subject)
    Set the patient for the document.

    Methods inherited from class org.projecthusky.fhir.core.ch.resource.r4.ChCoreDocumentEpr

    addComposition, addComposition

    Methods inherited from class org.projecthusky.fhir.core.ch.resource.r4.ChCoreDocument

    addComposition, addPatient

    Methods inherited from class org.hl7.fhir.r4.model.Bundle

    addChild, addEntry, addEntry, addLink, addLink, copy, copyValues, equalsDeep, equalsShallow, fhirType, getEntry, getEntryFirstRep, getIdentifier, getLink, getLink, getLinkFirstRep, getLinkOrCreate, getNamedProperty, getProperty, getResourceType, getSignature, getTimestamp, getTimestampElement, getTotal, getTotalElement, getType, getTypeElement, getTypesForProperty, hasEntry, hasIdentifier, hasLink, hasSignature, hasTimestamp, hasTimestampElement, hasTotal, hasTotalElement, hasType, hasTypeElement, isEmpty, listChildren, makeProperty, removeChild, setEntry, setIdentifier, setLink, setProperty, setProperty, setSignature, setTimestamp, setTimestampElement, setTotal, setTotalElement, setType, setTypeElement, typedCopy

    Methods inherited from class org.hl7.fhir.r4.model.Resource

    copyValues, getId, getIdBase, getIdElement, getIdPart, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta

    Methods inherited from class org.hl7.fhir.r4.model.BaseResource

    getStructureFhirVersionEnum, isResource, setId

    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, getChildValueByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getXhtml, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN, setXhtml

    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.IAnyResource

    getUserData, setUserData

    Methods inherited from interface org.hl7.fhir.instance.model.api.IBase

    getFormatCommentsPost, getFormatCommentsPre, hasFormatComment

    Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource

    getMeta, getStructureFhirVersionEnum, isDeleted, setId
  • Constructor Details

    • ChVacdAbstractDocument

      protected ChVacdAbstractDocument()
  • Method Details

    • resolveComposition

      @ExpectsValidResource public abstract ChVacdAbstractComposition resolveComposition()
      Returns the composition or throws.
      Overrides:
      resolveComposition in class ChCoreDocumentEpr
      Returns:
      the composition.
      Throws:
      InvalidContentException - if the composition is missing.
    • addImmunization

      public void addImmunization(ChVacdImmunization immunization)
      Adds an immunization to the document.
      Parameters:
      immunization - the immunization to add.
    • addImmunization

      public ChVacdImmunization addImmunization()
      Adds an immunization to the document.
      Returns:
      the created immunization resource.
    • resolveImmunizations

      public List<ChVacdImmunization> resolveImmunizations()
      get all immunization resources from the document.
      Returns:
      list of immunization resources.
    • addBasicImmunization

      public void addBasicImmunization(ChVacdBasicImmunization basicImmunization)
      Adds a basic immunization to the document.
      Parameters:
      basicImmunization - the basic immunization to add.
    • addBasicImmunization

      public ChVacdBasicImmunization addBasicImmunization()
      Adds a basic immunization to the document.
      Returns:
      the created basic immunization resource
    • resolveBasicImmunizations

      public List<ChVacdBasicImmunization> resolveBasicImmunizations()
      get all basic immunization resources from the document.
      Returns:
      list of basic immunization resources.
    • addMedicalProblem

      public ChVacdMedicalProblem addMedicalProblem()
      Method to create and add a MedicalProblem
      Returns:
      the created medical problem resource
    • addMedicalProblem

      public void addMedicalProblem(ChVacdMedicalProblem medicalProblem)
      Method to add a MedicalProblem
      Parameters:
      medicalProblem - the MedicalProblem resource to be added
    • resolveMedicalProblems

      public List<ChVacdMedicalProblem> resolveMedicalProblems()
      Method get a list of MedicalProblems
      Returns:
      list of MedicalProblems resources
    • addLaboratoryAndSerology

      public ChVacdLaboratoryAndSerology addLaboratoryAndSerology()
      Method to create and add LaboratoryAndSerology
      Returns:
      the created and added LaboratoryAndSerology resource
    • addLaboratoryAndSerology

      public void addLaboratoryAndSerology(ChVacdLaboratoryAndSerology labandser)
      Method to add LaboratoryAndSerology
      Parameters:
      labandser - the LaboratoryAndSerology resource to be added
    • resolveLaboratoryAndSerologies

      public List<ChVacdLaboratoryAndSerology> resolveLaboratoryAndSerologies()
      Method get a list of LaboratoryAndSerology
      Returns:
      list of LaboratoryAndSerology resources
    • addAllergyIntolerance

      public ChVacdAllergyIntolerance addAllergyIntolerance()
      Method to create and add AllergyIntolerance.
      Returns:
      the created and added AllergyIntolerance resource
    • addAllergyIntolerance

      public void addAllergyIntolerance(ChVacdAllergyIntolerance allInt)
      Method to add AllergyIntolerance resource.
    • resolveAllergyIntolerances

      public List<ChVacdAllergyIntolerance> resolveAllergyIntolerances()
      Method to get list of ChVacdAllergyIntolerance resources.
      Returns:
      the list of ChVacdAllergyIntolerance resources
    • addPastIllness

      public ChVacdPastIllness addPastIllness()
      Method to create and add PastIllness resource.
      Returns:
      the created and added PastIllness resource
    • addPastIllness

      public void addPastIllness(ChVacdPastIllness pastill)
      Method to add PastIllness resource.
      Parameters:
      pastill - the PastIllness resource to be added
    • resolvePastIllnesses

      public List<ChVacdPastIllness> resolvePastIllnesses()
    • setPatient

      public void setPatient(org.hl7.fhir.r4.model.Patient subject)
      Set the patient for the document.
      Parameters:
      testPatient - the patient to set.
    • addAuthor

      public void addAuthor(org.hl7.fhir.r4.model.DomainResource author, Date timeOfDataInput)