Class FhirCommon

java.lang.Object
org.projecthusky.fhir.structures.gen.FhirCommon

public class FhirCommon extends Object
Common material for Fhir package
  • Field Details

    • DEMO_COMMUNITY_OID

      public static final String DEMO_COMMUNITY_OID
      The Constant DEMO_COMMUNITY_OID.
      See Also:
    • DEMO_SOURCE_OID_PREFIX

      public static final String DEMO_SOURCE_OID_PREFIX
      The Constant DEMO_SOURCE_OID_PREFIX.
      See Also:
    • NIST_COMMUNITY_OID

      public static final String NIST_COMMUNITY_OID
      The Constant NIST_COMMUNITY_OID.
      See Also:
    • NIST_SOURCE_OID_PREFIX

      public static final String NIST_SOURCE_OID_PREFIX
      The Constant NIST_SOURCE_OID_PREFIX.
      See Also:
    • OID_URN

      public static final String OID_URN
      The urn prefix for OIDs.
      See Also:
    • UUID_URN

      public static final String UUID_URN
      The urn prefix for UUIDs.
      See Also:
    • OID_LANGUAGE

      public static final String OID_LANGUAGE
      uniform resource name (urn) of this OID
    • URN_USE_AS_ACTIVE_PROBLEM_CONCERN

      public static final String URN_USE_AS_ACTIVE_PROBLEM_CONCERN
      uniform resource name (urn) of this FHIR extension
      See Also:
    • URN_USE_AS_ACTIVE_PROBLEM_CONCERN_ENTRIES

      public static final String URN_USE_AS_ACTIVE_PROBLEM_CONCERN_ENTRIES
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_ACUITY_ASSESSMENT

      public static final String URN_USE_AS_ACUITY_ASSESSMENT
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_ADVANCE_DIRECTIVES

      public static final String URN_USE_AS_ADVANCE_DIRECTIVES
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_ALLERGY_PROBLEM_CONCERN

      public static final String URN_USE_AS_ALLERGY_PROBLEM_CONCERN
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_ALLERGY_PROBLEM_CONCERN_ENTRIES

      public static final String URN_USE_AS_ALLERGY_PROBLEM_CONCERN_ENTRIES
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_ASSESSMENT_AND_PLAN

      public static final String URN_USE_AS_ASSESSMENT_AND_PLAN
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_AUTHOR

      public static final String URN_USE_AS_AUTHOR
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_AUTHOR_LRQC

      public static final String URN_USE_AS_AUTHOR_LRQC
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_BLOOD_GROUP

      public static final String URN_USE_AS_BLOOD_GROUP
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_CHIEF_COMPLAINT

      public static final String URN_USE_AS_CHIEF_COMPLAINT
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_CODE

      public static final String URN_USE_AS_CODE
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_CODED_PHYSICAL_EXAM

      public static final String URN_USE_AS_CODED_PHYSICAL_EXAM
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_CODED_RESULT_OBSERVATIONS

      public static final String URN_USE_AS_CODED_RESULT_OBSERVATIONS
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_CODED_VITAL_SIGN_LIST

      public static final String URN_USE_AS_CODED_VITAL_SIGN_LIST
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_CODED_VITAL_SIGN_OBSERVATION

      public static final String URN_USE_AS_CODED_VITAL_SIGN_OBSERVATION
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_CODED_VITAL_SIGNS

      public static final String URN_USE_AS_CODED_VITAL_SIGNS
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_COMMENT

      public static final String URN_USE_AS_COMMENT
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_CONFIDENTIALITY

      public static final String URN_USE_AS_CONFIDENTIALITY
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_CRITERION

      public static final String URN_USE_AS_CRITERION
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_CURRENT_MEDICATIONS

      public static final String URN_USE_AS_CURRENT_MEDICATIONS
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_CUSTODIAN

      public static final String URN_USE_AS_CUSTODIAN
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_DOC_TYPE

      public static final String URN_USE_AS_DOC_TYPE
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_DOCUMENTATION_OF

      public static final String URN_USE_AS_DOCUMENTATION_OF
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_DOCUMENT_DESCRIPTOR

      public static final String URN_USE_AS_DOCUMENT_DESCRIPTOR
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_DOC_VERSION

      public static final String URN_USE_AS_DOC_VERSION
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_ED_CONSULTATIONS

      public static final String URN_USE_AS_ED_CONSULTATIONS
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_ED_DIAGNOSIS

      public static final String URN_USE_AS_ED_DIAGNOSIS
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_ED_DISPOSITION

      public static final String URN_USE_AS_ED_DISPOSITION
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_EXTERNAL_DOCUMENT

      public static final String URN_USE_AS_EXTERNAL_DOCUMENT
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_FORMAT_CODE

      public static final String URN_USE_AS_FORMAT_CODE
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_FUNCTION_CODE

      public static final String URN_USE_AS_FUNCTION_CODE
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_FAMILY_MEDICAL_HISTORY

      public static final String URN_USE_AS_FAMILY_MEDICAL_HISTORY
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_HISTORY_OF_IMMUNIZATION

      public static final String URN_USE_AS_HISTORY_OF_IMMUNIZATION
      uniform resource name (urn) of this FHIR extension
      See Also:
    • URN_USE_AS_HISTORY_OF_PRESENT_ILLNESS

      public static final String URN_USE_AS_HISTORY_OF_PRESENT_ILLNESS
      uniform resource name (urn) of this FHIR extension
      See Also:
    • URN_USE_AS_IDENTIFIER

      public static final String URN_USE_AS_IDENTIFIER
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_IMMUNIZATION

      public static final String URN_USE_AS_IMMUNIZATION
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_IMMUNIZATION_RECOMMENDATION

      public static final String URN_USE_AS_IMMUNIZATION_RECOMMENDATION
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_INFORMATION_RECIPIENT

      public static final String URN_USE_AS_INFORMATION_RECIPIENT
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_CLAIMER

      public static final String URN_USE_AS_CLAIMER
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_IN_FULFILLMENT_OF

      public static final String URN_USE_AS_IN_FULFILLMENT_OF
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_LABORATORY_BATTERY_ORGANIZER

      public static final String URN_USE_AS_LABORATORY_BATTERY_ORGANIZER
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_LABORATORY_ISOLATE_ORGANIZER

      public static final String URN_USE_AS_LABORATORY_ISOLATE_ORGANIZER
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • UNR_USE_AS_LABORATORY_OBSERVATION

      public static final String UNR_USE_AS_LABORATORY_OBSERVATION
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_LABORATORY_OBSERVATIONS

      public static final String URN_USE_AS_LABORATORY_OBSERVATIONS
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_LABORATORY_REPORT_DATA_PROCESSING_ENTRY

      public static final String URN_USE_AS_LABORATORY_REPORT_DATA_PROCESSING_ENTRY
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_LABORATORY_SPECIALTY_SECTION

      public static final String URN_USE_AS_LABORATORY_SPECIALTY_SECTION
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_LANGUAGE

      public static final String URN_USE_AS_LANGUAGE
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_LIST_OF_SURGERIES

      public static final String URN_USE_AS_LIST_OF_SURGERIES
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_LOT_NUMBERTEXT

      public static final String URN_USE_AS_LOT_NUMBERTEXT
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_MEDICATION_TARGET

      public static final String URN_USE_AS_MEDICATION_TARGET
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_METADATA_LANGUAGE

      public static final String URN_USE_AS_METADATA_LANGUAGE
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_MIME_TYPE

      public static final String URN_USE_AS_MIME_TYPE
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_MODEL_OF_ARRIVAL

      public static final String URN_USE_AS_MODEL_OF_ARRIVAL
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_NON_LIVING_SUBJECT

      public static final String URN_USE_AS_NON_LIVING_SUBJECT
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_NOTIFICATION_ORGANIZER

      public static final String URN_USE_AS_NOTIFICATION_ORGANIZER
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_OBSERVATION_MEDIA

      public static final String URN_USE_AS_OBSERVATION_MEDIA
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_ORGANIZER

      public static final String URN_USE_AS_ORGANIZER
      See Also:
    • URN_USE_AS_OUTBREAK_IDENTIFICATION

      public static final String URN_USE_AS_OUTBREAK_IDENTIFICATION
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_PARTICIPANT

      public static final String URN_USE_AS_PARTICIPANT
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_PAST_PROBLEM_CONCERN

      public static final String URN_USE_AS_PAST_PROBLEM_CONCERN
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_PAST_PROBLEM_CONCERN_ENTRIES

      public static final String URN_USE_AS_PAST_PROBLEM_CONCERN_ENTRIES
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_PATIENT

      public static final String URN_USE_AS_PATIENT
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_PERFORMER

      public static final String URN_USE_AS_PERFORMER
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_PRACTICE_SETTING_CODE

      public static final String URN_USE_AS_PRACTICE_SETTING_CODE
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_PREGNANCY_OBSERVATION

      public static final String URN_USE_AS_PREGNANCY_OBSERVATION
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_PROCEDURES

      public static final String URN_USE_AS_PROCEDURES
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_PROGRESS_NOTE

      public static final String URN_USE_AS_PROGRESS_NOTE
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_REASON

      public static final String URN_USE_AS_REASON
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_REASON_FOR_VISIT

      public static final String URN_USE_AS_REASON_FOR_VISIT
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_REFERENCE_RANGE

      public static final String URN_USE_AS_REFERENCE_RANGE
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_REFERRAL_ORDERING_PHYSICIAN

      public static final String URN_USE_AS_REFERRAL_ORDERING_PHYSICIAN
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_REFERRAL_SOURCE

      public static final String URN_USE_AS_REFERRAL_SOURCE
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_REGISTRY_DESTINATION

      public static final String URN_USE_AS_REGISTRY_DESTINATION
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_REPOSITORY_DESTINATION

      public static final String URN_USE_AS_REPOSITORY_DESTINATION
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_RESULTS

      public static final String URN_USE_AS_RESULTS
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_SOCIAL_HISTORY

      public static final String URN_USE_AS_SOCIAL_HISTORY
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_SPECIMEN_COLLECTION

      public static final String URN_USE_AS_SPECIMEN_COLLECTION
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_SPECIMEN_RECEIVED

      public static final String URN_USE_AS_SPECIMEN_RECEIVED
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_STUDIES_SUMMARY

      public static final String URN_USE_AS_STUDIES_SUMMARY
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_VITAL_SIGNS_OBSERVATION

      public static final String URN_USE_AS_VITAL_SIGNS_OBSERVATION
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • URN_USE_AS_VITAL_SIGNS_ORGANIZER

      public static final String URN_USE_AS_VITAL_SIGNS_ORGANIZER
      uniform resource name (urn) of this FHIR extension.
      See Also:
    • DUMMY_CODE

      public static final String DUMMY_CODE
      See Also:
  • Constructor Details

    • FhirCommon

      public FhirCommon()
  • Method Details

    • addDocManifestContent

      public static org.hl7.fhir.r4.model.Reference addDocManifestContent(org.hl7.fhir.r4.model.DocumentManifest documentManifest, org.hl7.fhir.r4.model.Resource resource)
      Adds a FHIR resource to the document
      Parameters:
      documentManifest - the FHIR document
      resource - the FHIR resource to be added to the document
      Returns:
      the content
    • addUrnOid

      public static String addUrnOid(String oid)
      Adds the urn:oid: Namespace to the OID
      Parameters:
      oid - the oid
      Returns:
      the oid containing the urn:oid: prefix
    • addUrnUuid

      public static String addUrnUuid(String uuid)
      Adds the urn:oid: Namespace to the UUID
      Parameters:
      uuid - the uuid
      Returns:
      the uuid containing the urn:uuid: prefix
    • createCodeableConcept

      public static org.hl7.fhir.r4.model.CodeableConcept createCodeableConcept(String systemOid, String value)
      Creates a new CodeableConcept containing the OID URN for the system component
      Parameters:
      systemOid - the systems oid
      value - the code
      Returns:
      the generated CodeableConcept
    • createCodeableConcept

      public static org.hl7.fhir.r4.model.CodeableConcept createCodeableConcept(String systemOid, String value, String displayName)
      Creates a new CodeableConcept containing the OID URN for the system component
      Parameters:
      systemOid - the systems oid
      value - the code
      displayName - the display name of the code
      Returns:
      the generated CodeableConcept
    • createCoding

      public static org.hl7.fhir.r4.model.Coding createCoding(String systemOid, String value)
      Creates a new Coding containing the OID URN for the system component
      Parameters:
      systemOid - the systems oid
      value - the code
      Returns:
      the generated code
    • createCoding

      public static org.hl7.fhir.r4.model.Coding createCoding(String systemOid, String value, String displayName)
      Creates a new Coding containing the OID URN for the system component
      Parameters:
      systemOid - the systems oid
      value - the code
      displayName - the display name of the code
      Returns:
      the generated code
    • createIdentifier

      public static org.hl7.fhir.r4.model.Identifier createIdentifier(Identificator srcId)
      Creates a new Identifier containing the OID URN for the system component.
      Parameters:
      srcId - the src id
      Returns:
      the generated identifier
    • createIdentifier

      public static org.hl7.fhir.r4.model.Identifier createIdentifier(String systemOid, String value)
      Creates a new Identifier containing the OID URN for the system component
      Parameters:
      systemOid - the systems oid
      value - the id
      Returns:
      the generated identifier
    • createObservation

      public static org.hl7.fhir.r4.model.Observation createObservation()
      Creates a Observation containing the required members in order to make the FHIR resource valid
      Returns:
      the FHIR observation
    • createObservation

      public static org.hl7.fhir.r4.model.Observation createObservation(org.hl7.fhir.r4.model.CodeableConcept ccd)
      Creates a Observation containing the required members in order to make the FHIR resource valid
      Parameters:
      ccd - the code for this observation
      Returns:
      the FHIR observation
    • ehcCodeToFhirCode

      public static org.hl7.fhir.r4.model.CodeableConcept ehcCodeToFhirCode(Code code)
      Cnverts a eHC code to a FHIR code
      Parameters:
      code - the eHC code
      Returns:
      the FHIR code
    • fhirAddressToEhcAddress

      public static Address fhirAddressToEhcAddress(org.hl7.fhir.r4.model.Address fAddr)
      Converts a FHIR address to a eHC address
      Parameters:
      fAddr - the FHIR address
      Returns:
      the eHC address
    • fhirCodeToEhcCode

      public static Code fhirCodeToEhcCode(org.hl7.fhir.r4.model.CodeableConcept codableConcept)
      Converts a FHIR code to a eHC code
      Parameters:
      codableConcept - the FHIR code
      Returns:
      the eHC code
    • fhirIdentifierToEhcIdentificator

      public static Identificator fhirIdentifierToEhcIdentificator(org.hl7.fhir.r4.model.Identifier id)
      Converts a FHIR id to a eHC id
      Parameters:
      id - the FHIR id
      Returns:
      the eHC id
    • fhirNameToEhcName

      public static Name fhirNameToEhcName(org.hl7.fhir.r4.model.HumanName fName)
      Converts a FHIR name to a eHC name
      Parameters:
      fName - the FHIR name
      Returns:
      the eHC name
    • formatDiv

      public static String formatDiv(org.hl7.fhir.utilities.xhtml.XhtmlNode xhtmlNode)
      Gets the DIV content from the given XHTML node
      Parameters:
      xhtmlNode - the XHTML node
      Returns:
      the DIV content
    • getAuthor

      public static Author getAuthor(org.hl7.fhir.instance.model.api.IBaseResource res)
      Gets an eHC Author from FHIR base resource.
      Parameters:
      res - the FHIR object
      Returns:
      the eHC Author
    • getAuthor

      public static Author getAuthor(org.hl7.fhir.r4.model.Organization fhirObject)
      Gets an eHC Author from FHIR Organization.
      Parameters:
      fhirObject - FHIR Organization resource
      Returns:
      the eHC Author
    • getAuthor

      public static Author getAuthor(org.hl7.fhir.r4.model.Person fhirObject)
      Gets an eHC Author from FHIR Person.
      Parameters:
      fhirObject - FHIR Person resource
      Returns:
      the eHC Author
    • getAuthor

      public static Author getAuthor(org.hl7.fhir.r4.model.Reference ref)
      Gets an eHC Author from FHIR resource reference.
      Parameters:
      ref - the FHIR object
      Returns:
      the eHC Author
    • getAuthor

      public static Author getAuthor(org.hl7.fhir.r4.model.Practitioner fhirObject)
      Gets an eHC Author from FHIR Practitioner.
      Parameters:
      fhirObject - FHIR Person resource
      Returns:
      the eHC Author
    • getAddress

      public static Address getAddress(org.hl7.fhir.r4.model.Address addr)
    • getCommunityPatientId

      public static Identificator getCommunityPatientId(Patient patient, String communityOid)
      Gets the community patient id.
      Parameters:
      patient - the patient
      communityOid - the community oid
      Returns:
      the community patient id
    • getConfidentialityNormal

      public static org.hl7.fhir.r4.model.Basic getConfidentialityNormal()
      Gets the FHIR element for a normal confidentiality code
      Returns:
      the FHIR element for a normal confidentiality code
    • getConfidentialityRestricted

      public static org.hl7.fhir.r4.model.Basic getConfidentialityRestricted()
      Gets the FHIR element for a restricted confidentiality code
      Returns:
      the FHIR element for a restricted confidentiality code
    • getDocumentFilepath

      public static String getDocumentFilepath(org.hl7.fhir.r4.model.DocumentReference fhirObject)
      Gets the file path to a document from the given FHIR object.
      Parameters:
      fhirObject - the FHIR object
      Returns:
      file path to a document
    • getDummyCode

      public static org.hl7.fhir.r4.model.Coding getDummyCode()
      Gets a dummmy code in order to make the FHIR resource valid
      Returns:
      the dummy code
    • getDummyCodeableConcept

      public static org.hl7.fhir.r4.model.CodeableConcept getDummyCodeableConcept()
      Gets a dummmy code in order to make the FHIR resource valid
      Returns:
      the dummy code
    • getDummyReference

      public static org.hl7.fhir.r4.model.Reference getDummyReference()
      Gets a dummmy reference in order to make the FHIR resource valid
      Returns:
      the dummy reference
    • getExtensionActiveProblemConcern

      public static org.hl7.fhir.r4.model.Extension getExtensionActiveProblemConcern()
      Gets this FHIR extension
      Returns:
      the extension ActiveProblemConcern
    • getExtensionAdvanceDirectives

      public static org.hl7.fhir.r4.model.Extension getExtensionAdvanceDirectives()
      Gets this FHIR extension
      Returns:
      the extension AdvanceDirectives
    • getExtensionAllergyProblemConcern

      public static org.hl7.fhir.r4.model.Extension getExtensionAllergyProblemConcern()
      Gets this FHIR extension
      Returns:
      the extension AllergyProblemConcern
    • getExtensionAuthor

      public static org.hl7.fhir.r4.model.Extension getExtensionAuthor()
      Gets this FHIR extension
      Returns:
      the extension author
    • getExtensionChiefComplaint

      public static org.hl7.fhir.r4.model.Extension getExtensionChiefComplaint()
      Gets this FHIR extension
      Returns:
      the extension ChiefComplaint
    • getExtensionClaimer

      public static org.hl7.fhir.r4.model.Extension getExtensionClaimer()
      Gets this FHIR extension
      Returns:
      the extension custodian
    • getExtensionCodedVitalSignObservation

      public static org.hl7.fhir.r4.model.Extension getExtensionCodedVitalSignObservation()
      Gets this FHIR extension
      Returns:
      the extension CodedVitalSignObservation
    • getExtensionComment

      public static org.hl7.fhir.r4.model.Extension getExtensionComment()
      Gets this FHIR extension
      Returns:
      the extension comment
    • getExtensionCriterion

      public static org.hl7.fhir.r4.model.Extension getExtensionCriterion()
      Gets this FHIR extension
      Returns:
      the extension criterion
    • getExtensionCustodian

      public static org.hl7.fhir.r4.model.Extension getExtensionCustodian()
      Gets this FHIR extension
      Returns:
      the extension custodian
    • getExtensionDocType

      public static org.hl7.fhir.r4.model.Extension getExtensionDocType()
      Gets this FHIR extension
      Returns:
      the extension criterion
    • getExtensionDocumentDescriptor

      public static org.hl7.fhir.r4.model.Extension getExtensionDocumentDescriptor()
      Gets this FHIR extension
      Returns:
      the extension document descriptor
    • getExtensionExternalDocument

      public static org.hl7.fhir.r4.model.Extension getExtensionExternalDocument()
      Gets this FHIR extension.
      Returns:
      the extension external document
    • getExtensionFormatCode

      public static org.hl7.fhir.r4.model.Extension getExtensionFormatCode()
      Gets this FHIR extension.
      Returns:
      the extension format code
    • getExtensionFunctionCodeDoctor

      public static org.hl7.fhir.r4.model.Extension getExtensionFunctionCodeDoctor()
      Gets this FHIR extension.
      Returns:
      the extension FunctionCodeDoctor
    • getExtensionFunctionCodeLabTechnician

      public static org.hl7.fhir.r4.model.Extension getExtensionFunctionCodeLabTechnician()
      Gets this FHIR extension.
      Returns:
      the extension FunctionCodeDoctor
    • getExtensionInformationRecipient

      public static org.hl7.fhir.r4.model.Extension getExtensionInformationRecipient()
      Gets this FHIR extension.
      Returns:
      the extension InformationRecipient
    • getExtensionLaboratoryBatteryOrganizer

      public static org.hl7.fhir.r4.model.Extension getExtensionLaboratoryBatteryOrganizer()
      Gets this FHIR extension.
    • getExtensionLaboratoryObservations

      public static org.hl7.fhir.r4.model.Extension getExtensionLaboratoryObservations()
      Gets this FHIR extension.
    • getExtensionMedicationTarget

      public static org.hl7.fhir.r4.model.Extension getExtensionMedicationTarget()
      Gets this FHIR extension.
      Returns:
      the extension medication target
    • getExtensionMetadataLanguage

      public static org.hl7.fhir.r4.model.Extension getExtensionMetadataLanguage()
      Gets this FHIR extension.
      Returns:
      the extension metadata language
    • getExtensionMimeType

      public static org.hl7.fhir.r4.model.Extension getExtensionMimeType()
      Gets this FHIR extension.
      Returns:
      the extension mime type
    • getExtensionNonLivingSubject

      public static org.hl7.fhir.r4.model.Extension getExtensionNonLivingSubject()
      Gets this FHIR extension.
      Returns:
      the extension author
    • getExtensionParticipant

      public static org.hl7.fhir.r4.model.Extension getExtensionParticipant()
      Gets this FHIR extension.
      Returns:
      the extension author
    • getExtensionPerformer

      public static org.hl7.fhir.r4.model.Extension getExtensionPerformer()
      Gets this FHIR extension.
      Returns:
      the extension performer
    • getExtensionPracticeSettingCode

      public static org.hl7.fhir.r4.model.Extension getExtensionPracticeSettingCode()
      Gets this FHIR extension.
      Returns:
      the extension practice setting code
    • getExtensionReason

      public static org.hl7.fhir.r4.model.Extension getExtensionReason()
      Gets this FHIR extension.
      Returns:
      the extension reason
    • getExtensionRepositoryDestination

      public static org.hl7.fhir.r4.model.Extension getExtensionRepositoryDestination()
      Gets this FHIR extension.
      Returns:
      the extension repository destination
    • getFormatCode

      public static Code getFormatCode(org.hl7.fhir.r4.model.DocumentReference fhirObject)
      Gets a eHC Code to be used as format code from the FHIR DocumentReference object.
      Parameters:
      fhirObject - the FHIR object
      Returns:
      eHC Code to be used as format code
    • getInformationRecipient

      public static org.hl7.fhir.r4.model.Extension getInformationRecipient()
      Gets this FHIR extension.
      Returns:
      the information recipient
    • getMetadataLanguage

      public static String getMetadataLanguage(org.hl7.fhir.r4.model.DocumentReference fhirObject)
      Gets a string describing the language of the meta data from the FHIR DocumentReference object.
      Parameters:
      fhirObject - the FHIR object
      Returns:
      string describing the language of the meta data
    • getMimeType

      public static String getMimeType(org.hl7.fhir.r4.model.DocumentReference fhirObject)
      Gets a string describing the mime type from the FHIR DocumentReference object.
      Parameters:
      fhirObject - the FHIR object
      Returns:
      string describing the mime type
    • getOrganization

      public static Organization getOrganization(org.hl7.fhir.instance.model.api.IBaseResource res)
      Gets an eHC Organization object from the given FHIR base resource object.
      Parameters:
      res - the FHIR base resource object
      Returns:
      the eHC Organization
    • getOrganization

      public static Organization getOrganization(org.hl7.fhir.r4.model.Organization fhirOrganization)
      Gets an eHC Organization object from the given FHIR Organization object.
      Parameters:
      fhirOrganization - FHIR Organization resource
      Returns:
      eHC Organization object eHC Organization
    • getOrganization

      public static Organization getOrganization(org.hl7.fhir.r4.model.Reference orgRef)
      Gets an eHC Organization object from the given FHIR reference object.
      Parameters:
      orgRef - the FHIR reference object
      Returns:
      the eHC Organization
    • getPatient

      public static Patient getPatient(org.hl7.fhir.instance.model.api.IBaseResource res)
      Gets an eHC Patient object from the given FHIR base resource object.
      Parameters:
      res - the FHIR base resource object
      Returns:
      the eHC Patient object
    • getPatient

      public static Patient getPatient(org.hl7.fhir.r4.model.Bundle bundle)
      Gets an eHC Patient object from the given FHIR resource.
      Parameters:
      bundle - the FHIR resource
      Returns:
      eHC Patient object
    • getPatient

      public static Patient getPatient(org.hl7.fhir.r4.model.DocumentManifest docManifest)
      Gets an eHC Patient object from the given FHIR resource.
      Parameters:
      docManifest - the FHIR resource
      Returns:
      eHC Patient object
    • getPatient

      public static Patient getPatient(org.hl7.fhir.r4.model.Patient fhirPatient)
      Gets an eHC Patient object from the given FHIR Patient object.
      Parameters:
      fhirPatient - the FHIR Patient object
      Returns:
      the eHC Patient object
    • getPatient

      public static Patient getPatient(org.hl7.fhir.r4.model.Reference orgRef)
      Gets an eHC Patient object from the given FHIR reference object.
      Parameters:
      orgRef - the FHIR reference object
      Returns:
      the eHC Patient object
    • getPerformer

      public static POCDMT000040Performer2 getPerformer(org.hl7.fhir.r4.model.Person fhirObject)
      Gets an eHC Author from FHIR Person.
      Parameters:
      fhirObject - FHIR Person resource
      Returns:
      the eHC Author
    • getPracticeSettingCode

      public static Code getPracticeSettingCode(org.hl7.fhir.r4.model.DocumentReference fhirObject)
      Gets a eHC Code to be used as practice setting code from the FHIR DocumentReference object.
      Parameters:
      fhirObject - the FHIR object
      Returns:
      eHC Code to be used as format code
    • getTelecoms

      public static List<Telecom> getTelecoms(List<org.hl7.fhir.r4.model.ContactPoint> fhirContactPoints)
      Gets the eHC Telecoms from the given FHIR object.
      Parameters:
      fhirContactPoints - a list of FHIR ContactPoint resources
      Returns:
      eHC Telecoms
    • getXmlResource

      public static String getXmlResource(String fileName)
      reads the given XML file (UTF-8) into a string
      Parameters:
      fileName - file to read
      Returns:
      the given XML file (UTF-8)string containing the XML file content
    • removeUrnOidPrefix

      public static String removeUrnOidPrefix(String value)
      removes urn:oid: prefix of the given string
      Parameters:
      value - value string beginning with the urn:oid:prefix
      Returns:
      string without the prefix
    • saveResource

      public static boolean saveResource(org.slf4j.Logger log, String path, org.hl7.fhir.instance.model.api.IBaseResource fhirResource, String fileName, FhirCommon.SaveMode saveMode)
      Stores the given FHIR resource to disk
      Parameters:
      log - the logger
      fhirResource - FHIR resource to save
      path - Directory where to save the file
      fileName - filename of the file to be created
      saveMode - how to save the resource (NONE: does nothing; LOG: writed the resource as debug entry to the log; FILE creates an XML File on your disk using the given fileName)
      Returns:
      true when save was successful; false otherwise
    • getFullFileName

      public static String getFullFileName(String path, String fileName, String separator)