Class DocumentEntryConverter
java.lang.Object
org.projecthusky.communication.xdsmhdconversion.converters.DocumentEntryConverter
- Direct Known Subclasses:
ChEprFhirDocumentEntryConverter
A converter between XDS' DocumentEntry and MHD's DocumentReference.
- Author:
- Quentin Ligier
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.r4.model.DocumentReference
convertDocumentEntry
(org.openehealth.ipf.commons.ihe.xds.core.metadata.DocumentEntry documentEntry) Convert an XDS DocumentEntry to an MHD DocumentReference.org.hl7.fhir.r4.model.DocumentReference
convertDocumentEntry
(org.openehealth.ipf.commons.ihe.xds.core.metadata.DocumentEntry documentEntry, List<org.openehealth.ipf.commons.ihe.xds.core.metadata.Association> associations) Convert an XDS DocumentEntry to an MHD DocumentReference.org.openehealth.ipf.commons.ihe.xds.core.metadata.DocumentEntry
convertDocumentReference
(org.hl7.fhir.r4.model.DocumentReference documentReference) Convert an MHD DocumentReference to an XDS DocumentEntry.
-
Field Details
-
COMPREHENSIVE_DOCUMENT_REFERENCE_PROFILE
- See Also:
-
MINIMAL_DOCUMENT_REFERENCE_PROFILE
- See Also:
-
-
Constructor Details
-
DocumentEntryConverter
public DocumentEntryConverter()
-
-
Method Details
-
convertDocumentEntry
public org.hl7.fhir.r4.model.DocumentReference convertDocumentEntry(org.openehealth.ipf.commons.ihe.xds.core.metadata.DocumentEntry documentEntry) Convert an XDS DocumentEntry to an MHD DocumentReference.- Parameters:
documentEntry
- The XDS DocumentEntry to convert.- Returns:
- the equivalent MHD DocumentReference.
-
convertDocumentEntry
public org.hl7.fhir.r4.model.DocumentReference convertDocumentEntry(org.openehealth.ipf.commons.ihe.xds.core.metadata.DocumentEntry documentEntry, List<org.openehealth.ipf.commons.ihe.xds.core.metadata.Association> associations) Convert an XDS DocumentEntry to an MHD DocumentReference.- Parameters:
documentEntry
- The XDS DocumentEntry to convert.associations
- The XDS associations having this document entry as a source and another document entry as a target. Associations are added to the relatesTo element of the document reference.- Returns:
- the equivalent MHD DocumentReference.
-
convertDocumentReference
public org.openehealth.ipf.commons.ihe.xds.core.metadata.DocumentEntry convertDocumentReference(org.hl7.fhir.r4.model.DocumentReference documentReference) Convert an MHD DocumentReference to an XDS DocumentEntry.- Parameters:
documentReference
- The MHD DocumentReference to convert.- Returns:
- the equivalent XDS DocumentEntry.
-