Class XdsUtil

java.lang.Object
org.projecthusky.communication.utils.XdsUtil

public class XdsUtil extends Object
xds util class
  • 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 XDSDocument
      docNr - 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 XDSDocument
      docNr - the number of the document
      Returns:
      the path and name of the document