Class XdsUtil
java.lang.Object
org.projecthusky.communication.utils.XdsUtil
xds util class
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.openehealth.ipf.commons.ihe.xds.core.metadata.TimeRange[]
Converts a list of eHC DateTimeRange to a list of OHT DateTimeRange.static String
createXdmDocName
(org.openehealth.ipf.commons.ihe.xds.core.metadata.Document xdsDoc, int docNr) Creates a document name in conformance with the XDM document naming schemestatic String
createXdmDocPathAndName
(org.openehealth.ipf.commons.ihe.xds.core.metadata.Document xdsDoc, int docNr) Creates a document path and name in conformance with the XDM document naming scheme
-
Method Details
-
convertEhcDateTimeRange
public static org.openehealth.ipf.commons.ihe.xds.core.metadata.TimeRange[] convertEhcDateTimeRange(DateTimeRange[] dtr) Converts a list of eHC DateTimeRange to a list of OHT DateTimeRange.- Parameters:
dtr
- the OHT DateTimeRange- Returns:
- the DateTimeRange Array
-
createXdmDocName
public static String createXdmDocName(org.openehealth.ipf.commons.ihe.xds.core.metadata.Document xdsDoc, int docNr) Creates a document name in conformance with the XDM document naming scheme- Parameters:
xdsDoc
- the OHT XDSDocumentdocNr
- the number of the document- Returns:
- the name of the document
-
createXdmDocPathAndName
public static String createXdmDocPathAndName(org.openehealth.ipf.commons.ihe.xds.core.metadata.Document xdsDoc, int docNr) Creates a document path and name in conformance with the XDM document naming scheme- Parameters:
xdsDoc
- the OHT XDSDocumentdocNr
- the number of the document- Returns:
- the path and name of the document
-