Class FhirCommon
java.lang.Object
org.projecthusky.fhir.structures.gen.FhirCommon
Common material for Fhir package
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The Constant DEMO_COMMUNITY_OID.static final String
The Constant DEMO_SOURCE_OID_PREFIX.static final String
static final String
The Constant NIST_COMMUNITY_OID.static final String
The Constant NIST_SOURCE_OID_PREFIX.static final String
uniform resource name (urn) of this OIDstatic final String
The urn prefix for OIDs.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extensionstatic final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extensionstatic final String
uniform resource name (urn) of this FHIR extensionstatic final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
uniform resource name (urn) of this FHIR extension.static final String
The urn prefix for UUIDs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 documentstatic String
Adds the urn:oid: Namespace to the OIDstatic String
addUrnUuid
(String uuid) Adds the urn:oid: Namespace to the UUIDstatic org.hl7.fhir.r4.model.CodeableConcept
createCodeableConcept
(String systemOid, String value) Creates a new CodeableConcept containing the OID URN for the system componentstatic org.hl7.fhir.r4.model.CodeableConcept
createCodeableConcept
(String systemOid, String value, String displayName) Creates a new CodeableConcept containing the OID URN for the system componentstatic org.hl7.fhir.r4.model.Coding
createCoding
(String systemOid, String value) Creates a new Coding containing the OID URN for the system componentstatic org.hl7.fhir.r4.model.Coding
createCoding
(String systemOid, String value, String displayName) Creates a new Coding containing the OID URN for the system componentstatic org.hl7.fhir.r4.model.Identifier
createIdentifier
(String systemOid, String value) Creates a new Identifier containing the OID URN for the system componentstatic org.hl7.fhir.r4.model.Identifier
createIdentifier
(Identificator srcId) Creates a new Identifier containing the OID URN for the system component.static org.hl7.fhir.r4.model.Observation
Creates a Observation containing the required members in order to make the FHIR resource validstatic 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 validstatic org.hl7.fhir.r4.model.CodeableConcept
ehcCodeToFhirCode
(Code code) Cnverts a eHC code to a FHIR codestatic Address
fhirAddressToEhcAddress
(org.hl7.fhir.r4.model.Address fAddr) Converts a FHIR address to a eHC addressstatic Code
fhirCodeToEhcCode
(org.hl7.fhir.r4.model.CodeableConcept codableConcept) Converts a FHIR code to a eHC codestatic Identificator
fhirIdentifierToEhcIdentificator
(org.hl7.fhir.r4.model.Identifier id) Converts a FHIR id to a eHC idstatic Name
fhirNameToEhcName
(org.hl7.fhir.r4.model.HumanName fName) Converts a FHIR name to a eHC namestatic String
formatDiv
(org.hl7.fhir.utilities.xhtml.XhtmlNode xhtmlNode) Gets the DIV content from the given XHTML nodestatic Address
getAddress
(org.hl7.fhir.r4.model.Address addr) static Author
getAuthor
(org.hl7.fhir.instance.model.api.IBaseResource res) Gets an eHC Author from FHIR base resource.static Author
getAuthor
(org.hl7.fhir.r4.model.Organization fhirObject) Gets an eHC Author from FHIR Organization.static Author
getAuthor
(org.hl7.fhir.r4.model.Person fhirObject) Gets an eHC Author from FHIR Person.static Author
getAuthor
(org.hl7.fhir.r4.model.Practitioner fhirObject) Gets an eHC Author from FHIR Practitioner.static Author
getAuthor
(org.hl7.fhir.r4.model.Reference ref) Gets an eHC Author from FHIR resource reference.static Identificator
getCommunityPatientId
(Patient patient, String communityOid) Gets the community patient id.static org.hl7.fhir.r4.model.Basic
Gets the FHIR element for a normal confidentiality codestatic org.hl7.fhir.r4.model.Basic
Gets the FHIR element for a restricted confidentiality codestatic String
getDocumentFilepath
(org.hl7.fhir.r4.model.DocumentReference fhirObject) Gets the file path to a document from the given FHIR object.static org.hl7.fhir.r4.model.Coding
Gets a dummmy code in order to make the FHIR resource validstatic org.hl7.fhir.r4.model.CodeableConcept
Gets a dummmy code in order to make the FHIR resource validstatic org.hl7.fhir.r4.model.Reference
Gets a dummmy reference in order to make the FHIR resource validstatic org.hl7.fhir.r4.model.Extension
Gets this FHIR extensionstatic org.hl7.fhir.r4.model.Extension
Gets this FHIR extensionstatic org.hl7.fhir.r4.model.Extension
Gets this FHIR extensionstatic org.hl7.fhir.r4.model.Extension
Gets this FHIR extensionstatic org.hl7.fhir.r4.model.Extension
Gets this FHIR extensionstatic org.hl7.fhir.r4.model.Extension
Gets this FHIR extensionstatic org.hl7.fhir.r4.model.Extension
Gets this FHIR extensionstatic org.hl7.fhir.r4.model.Extension
Gets this FHIR extensionstatic org.hl7.fhir.r4.model.Extension
Gets this FHIR extensionstatic org.hl7.fhir.r4.model.Extension
Gets this FHIR extensionstatic org.hl7.fhir.r4.model.Extension
Gets this FHIR extensionstatic org.hl7.fhir.r4.model.Extension
Gets this FHIR extensionstatic org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.static org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.static org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.static org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.static org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.static org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.static org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.static org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.static org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.static org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.static org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.static org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.static org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.static org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.static org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.static org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.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.static String
getFullFileName
(String path, String fileName, String separator) static org.hl7.fhir.r4.model.Extension
Gets this FHIR extension.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.static String
getMimeType
(org.hl7.fhir.r4.model.DocumentReference fhirObject) Gets a string describing the mime type from the FHIR DocumentReference object.static Organization
getOrganization
(org.hl7.fhir.instance.model.api.IBaseResource res) Gets an eHC Organization object from the given FHIR base resource object.static Organization
getOrganization
(org.hl7.fhir.r4.model.Organization fhirOrganization) Gets an eHC Organization object from the given FHIR Organization object.static Organization
getOrganization
(org.hl7.fhir.r4.model.Reference orgRef) Gets an eHC Organization object from the given FHIR reference object.static Patient
getPatient
(org.hl7.fhir.instance.model.api.IBaseResource res) Gets an eHC Patient object from the given FHIR base resource object.static Patient
getPatient
(org.hl7.fhir.r4.model.Bundle bundle) Gets an eHC Patient object from the given FHIR resource.static Patient
getPatient
(org.hl7.fhir.r4.model.DocumentManifest docManifest) Gets an eHC Patient object from the given FHIR resource.static Patient
getPatient
(org.hl7.fhir.r4.model.Patient fhirPatient) Gets an eHC Patient object from the given FHIR Patient object.static Patient
getPatient
(org.hl7.fhir.r4.model.Reference orgRef) Gets an eHC Patient object from the given FHIR reference object.static POCDMT000040Performer2
getPerformer
(org.hl7.fhir.r4.model.Person fhirObject) Gets an eHC Author from FHIR Person.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.getTelecoms
(List<org.hl7.fhir.r4.model.ContactPoint> fhirContactPoints) Gets the eHC Telecoms from the given FHIR object.static String
getXmlResource
(String fileName) reads the given XML file (UTF-8) into a stringstatic String
removeUrnOidPrefix
(String value) removes urn:oid: prefix of the given stringstatic 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
-
Field Details
-
DEMO_COMMUNITY_OID
The Constant DEMO_COMMUNITY_OID.- See Also:
-
DEMO_SOURCE_OID_PREFIX
The Constant DEMO_SOURCE_OID_PREFIX.- See Also:
-
NIST_COMMUNITY_OID
The Constant NIST_COMMUNITY_OID.- See Also:
-
NIST_SOURCE_OID_PREFIX
The Constant NIST_SOURCE_OID_PREFIX.- See Also:
-
OID_URN
The urn prefix for OIDs.- See Also:
-
UUID_URN
The urn prefix for UUIDs.- See Also:
-
OID_LANGUAGE
uniform resource name (urn) of this OID -
URN_USE_AS_ACTIVE_PROBLEM_CONCERN
uniform resource name (urn) of this FHIR extension- See Also:
-
URN_USE_AS_ACTIVE_PROBLEM_CONCERN_ENTRIES
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_ACUITY_ASSESSMENT
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_ADVANCE_DIRECTIVES
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_ALLERGY_PROBLEM_CONCERN
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_ALLERGY_PROBLEM_CONCERN_ENTRIES
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_ASSESSMENT_AND_PLAN
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_AUTHOR
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_AUTHOR_LRQC
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_BLOOD_GROUP
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_CHIEF_COMPLAINT
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_CODE
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_CODED_PHYSICAL_EXAM
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_CODED_RESULT_OBSERVATIONS
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_CODED_VITAL_SIGN_LIST
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_CODED_VITAL_SIGN_OBSERVATION
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_CODED_VITAL_SIGNS
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_COMMENT
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_CONFIDENTIALITY
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_CRITERION
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_CURRENT_MEDICATIONS
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_CUSTODIAN
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_DOC_TYPE
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_DOCUMENTATION_OF
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_DOCUMENT_DESCRIPTOR
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_DOC_VERSION
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_ED_CONSULTATIONS
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_ED_DIAGNOSIS
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_ED_DISPOSITION
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_EXTERNAL_DOCUMENT
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_FORMAT_CODE
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_FUNCTION_CODE
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_FAMILY_MEDICAL_HISTORY
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_HISTORY_OF_IMMUNIZATION
uniform resource name (urn) of this FHIR extension- See Also:
-
URN_USE_AS_HISTORY_OF_PRESENT_ILLNESS
uniform resource name (urn) of this FHIR extension- See Also:
-
URN_USE_AS_IDENTIFIER
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_IMMUNIZATION
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_IMMUNIZATION_RECOMMENDATION
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_INFORMATION_RECIPIENT
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_CLAIMER
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_IN_FULFILLMENT_OF
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_LABORATORY_BATTERY_ORGANIZER
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_LABORATORY_ISOLATE_ORGANIZER
uniform resource name (urn) of this FHIR extension.- See Also:
-
UNR_USE_AS_LABORATORY_OBSERVATION
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_LABORATORY_OBSERVATIONS
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_LABORATORY_REPORT_DATA_PROCESSING_ENTRY
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_LABORATORY_SPECIALTY_SECTION
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_LANGUAGE
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_LEGAL_AUTHENTICATOR
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_LIST_OF_SURGERIES
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_LOT_NUMBERTEXT
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_MEDICATION_TARGET
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_METADATA_LANGUAGE
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_MIME_TYPE
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_MODEL_OF_ARRIVAL
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_NON_LIVING_SUBJECT
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_NOTIFICATION_ORGANIZER
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_OBSERVATION_MEDIA
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_ORGANIZER
- See Also:
-
URN_USE_AS_OUTBREAK_IDENTIFICATION
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_PARTICIPANT
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_PAST_PROBLEM_CONCERN
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_PAST_PROBLEM_CONCERN_ENTRIES
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_PATIENT
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_PERFORMER
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_PRACTICE_SETTING_CODE
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_PREGNANCY_OBSERVATION
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_PROCEDURES
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_PROGRESS_NOTE
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_REASON
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_REASON_FOR_VISIT
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_REFERENCE_RANGE
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_REFERRAL_ORDERING_PHYSICIAN
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_REFERRAL_SOURCE
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_REGISTRY_DESTINATION
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_RELATED_DOCUMENT
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_REPOSITORY_DESTINATION
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_RESULTS
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_SOCIAL_HISTORY
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_SPECIMEN_COLLECTION
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_SPECIMEN_RECEIVED
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_STUDIES_SUMMARY
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_VITAL_SIGNS_OBSERVATION
uniform resource name (urn) of this FHIR extension.- See Also:
-
URN_USE_AS_VITAL_SIGNS_ORGANIZER
uniform resource name (urn) of this FHIR extension.- See Also:
-
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 documentresource
- the FHIR resource to be added to the document- Returns:
- the content
-
addUrnOid
Adds the urn:oid: Namespace to the OID- Parameters:
oid
- the oid- Returns:
- the oid containing the urn:oid: prefix
-
addUrnUuid
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 oidvalue
- 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 oidvalue
- the codedisplayName
- the display name of the code- Returns:
- the generated CodeableConcept
-
createCoding
Creates a new Coding containing the OID URN for the system component- Parameters:
systemOid
- the systems oidvalue
- 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 oidvalue
- the codedisplayName
- the display name of the code- Returns:
- the generated code
-
createIdentifier
Creates a new Identifier containing the OID URN for the system component.- Parameters:
srcId
- the src id- Returns:
- the generated identifier
-
createIdentifier
Creates a new Identifier containing the OID URN for the system component- Parameters:
systemOid
- the systems oidvalue
- 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
Cnverts a eHC code to a FHIR code- Parameters:
code
- the eHC code- Returns:
- the FHIR code
-
fhirAddressToEhcAddress
Converts a FHIR address to a eHC address- Parameters:
fAddr
- the FHIR address- Returns:
- the eHC address
-
fhirCodeToEhcCode
Converts a FHIR code to a eHC code- Parameters:
codableConcept
- the FHIR code- Returns:
- the eHC code
-
fhirIdentifierToEhcIdentificator
Converts a FHIR id to a eHC id- Parameters:
id
- the FHIR id- Returns:
- the eHC id
-
fhirNameToEhcName
Converts a FHIR name to a eHC name- Parameters:
fName
- the FHIR name- Returns:
- the eHC name
-
formatDiv
Gets the DIV content from the given XHTML node- Parameters:
xhtmlNode
- the XHTML node- Returns:
- the DIV content
-
getAuthor
Gets an eHC Author from FHIR base resource.- Parameters:
res
- the FHIR object- Returns:
- the eHC Author
-
getAuthor
Gets an eHC Author from FHIR Organization.- Parameters:
fhirObject
- FHIR Organization resource- Returns:
- the eHC Author
-
getAuthor
Gets an eHC Author from FHIR Person.- Parameters:
fhirObject
- FHIR Person resource- Returns:
- the eHC Author
-
getAuthor
Gets an eHC Author from FHIR resource reference.- Parameters:
ref
- the FHIR object- Returns:
- the eHC Author
-
getAuthor
Gets an eHC Author from FHIR Practitioner.- Parameters:
fhirObject
- FHIR Person resource- Returns:
- the eHC Author
-
getAddress
-
getCommunityPatientId
Gets the community patient id.- Parameters:
patient
- the patientcommunityOid
- 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
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
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
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
Gets a string describing the mime type from the FHIR DocumentReference object.- Parameters:
fhirObject
- the FHIR object- Returns:
- string describing the mime type
-
getOrganization
Gets an eHC Organization object from the given FHIR base resource object.- Parameters:
res
- the FHIR base resource object- Returns:
- the eHC Organization
-
getOrganization
Gets an eHC Organization object from the given FHIR Organization object.- Parameters:
fhirOrganization
- FHIR Organization resource- Returns:
- eHC Organization object eHC Organization
-
getOrganization
Gets an eHC Organization object from the given FHIR reference object.- Parameters:
orgRef
- the FHIR reference object- Returns:
- the eHC Organization
-
getPatient
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
Gets an eHC Patient object from the given FHIR resource.- Parameters:
bundle
- the FHIR resource- Returns:
- eHC Patient object
-
getPatient
Gets an eHC Patient object from the given FHIR resource.- Parameters:
docManifest
- the FHIR resource- Returns:
- eHC Patient object
-
getPatient
Gets an eHC Patient object from the given FHIR Patient object.- Parameters:
fhirPatient
- the FHIR Patient object- Returns:
- the eHC Patient object
-
getPatient
Gets an eHC Patient object from the given FHIR reference object.- Parameters:
orgRef
- the FHIR reference object- Returns:
- the eHC Patient object
-
getPerformer
Gets an eHC Author from FHIR Person.- Parameters:
fhirObject
- FHIR Person resource- Returns:
- the eHC Author
-
getPracticeSettingCode
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
Gets the eHC Telecoms from the given FHIR object.- Parameters:
fhirContactPoints
- a list of FHIR ContactPoint resources- Returns:
- eHC Telecoms
-
getXmlResource
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
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 loggerfhirResource
- FHIR resource to savepath
- Directory where to save the filefileName
- filename of the file to be createdsaveMode
- 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
-