Class CDAR2ExtractorAt

java.lang.Object
org.projecthusky.common.communication.CDAR2Extractor
org.projecthusky.communication.at.CDAR2ExtractorAt

public class CDAR2ExtractorAt extends CDAR2Extractor
  • Constructor Details

    • CDAR2ExtractorAt

      public CDAR2ExtractorAt(POCDMT000040ClinicalDocument cda)
      Loads CDA Document
      Parameters:
      cda - the CDA R2 document to extract metadata from for the document entry metadata. Cannot be null.
  • Method Details

    • extractConfidentialityCodes

      public List<org.openehealth.ipf.commons.ihe.xds.core.metadata.Code> extractConfidentialityCodes()
      Extracts the relevant confidentialityCodes information from the CDA: ClinicalDocument/confidentialityCode. Implementation consistent with PCC TF-2 Medical Document Binding to XDS, XDM and XDR.
      Overrides:
      extractConfidentialityCodes in class CDAR2Extractor
    • extractEventCode

      public org.openehealth.ipf.commons.ihe.xds.core.metadata.Code extractEventCode()
      This extraction routine, at this point, does not attempt to extract event code metadata from a generic CDA R2 document.
      Returns:
      null
    • extractEventStartTime

      public Instant extractEventStartTime()
    • extractEventStopTime

      public Instant extractEventStopTime()
      This extraction routine, at this point, does not attempt to extract event code metadata from a generic CDA R2 document.
      Returns:
      null
    • extractPatientIds

      public List<org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable> extractPatientIds()
      Extracts all patientId information from the CDA: ClinicalDocument/recordTarget/patientRole/id
      NOTES: 1. XDS metadata does not accept CX types that have more or fewer components than CX.1, CX.4.2,CX.4.3. Other corresponding componets will not be extracted.
      2. Implementation consistent with PCC TF-2 Medical Document Binding to XDS, XDM and XDR.
    • extractTypeCodeOfTranslation

      public org.openehealth.ipf.commons.ihe.xds.core.metadata.Code extractTypeCodeOfTranslation()
      Extracts the relevant typeCode. Implementation consistent with PCC TF-2 Medical Document Binding to XDS, XDM and XDR. information from the CDA: ClinicalDocument/code
      Note: typeCode and classCode data sources are the same in the CDA
    • extractTypeCode

      public org.openehealth.ipf.commons.ihe.xds.core.metadata.Code extractTypeCode()
      Extracts the relevant typeCode from CDA.
      Overrides:
      extractTypeCode in class CDAR2Extractor
    • extractCode

      public org.openehealth.ipf.commons.ihe.xds.core.metadata.Code extractCode()
    • extractParentDocument

      public org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable extractParentDocument()
      DocumentEntry.parentDocument expresses the id and relationship of a parent document to this CDA document in the XDS Regisry. This is not necessairly the same parent document that is documented within the CDA. Thus, this information is not extracted.
      Overrides:
      extractParentDocument in class CDAR2Extractor
      Returns:
      null
    • extractParentDocumentType

      public org.openehealth.ipf.commons.ihe.xds.core.metadata.AssociationType extractParentDocumentType()
      DocumentEntry.parentDocument expresses the id and relationship of a parent document to this CDA document in the XDS Regisry. This is not necessairly the same parent document that is documented within the CDA. Thus, this information is not extracted.
      Returns:
      null
    • extractSourcePatientInfo

      public org.openehealth.ipf.commons.ihe.xds.core.metadata.PatientInfo extractSourcePatientInfo()
      Extracts the relevant sourcePatientInfo information from the CDA: ClinicalDocument/recordTarget/patientRole
      NOTES:
      • 1. Only the first ClinicalDocument/recordTarget instance will be considered for sourcePatientId (for which only the first patientRole/id on it's list will be taken) and sourcePatientInfo .
      • 2. Extracts all id of the list of ids for PatientRole to PID-3 and the PatientRole/Patient/id
      • 3. XDS metadata does not accept CX types that have more or fewer components than CX.1, CX.4.2,CX.4.3. Other corresponding componets will not be extracted.
      • 4. XDS metadata validation for 2007 Connectathon will not accept SourcePatientInfo beyond local patient ids, patient name, address, birthdate and gender. Other patient info in the CDA that corresponds to source patient info will not be extracted.
      • 5.Only the first address will be considered for extraction, only the first subelements of the AD type will be considered for extraction.
      • 6. Implementation consistent with PCC TF-2 Medical Document Binding to XDS, XDM and XDR.
      Overrides:
      extractSourcePatientInfo in class CDAR2Extractor