Class CDAR2ExtractorAt
java.lang.Object
org.projecthusky.common.communication.CDAR2Extractor
org.projecthusky.communication.at.CDAR2ExtractorAt
-
Field Summary
Fields inherited from class org.projecthusky.common.communication.CDAR2Extractor
cda
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.openehealth.ipf.commons.ihe.xds.core.metadata.Code
List<org.openehealth.ipf.commons.ihe.xds.core.metadata.Code>
Extracts the relevant confidentialityCodes information from the CDA: ClinicalDocument/confidentialityCode.org.openehealth.ipf.commons.ihe.xds.core.metadata.Code
This extraction routine, at this point, does not attempt to extract event code metadata from a generic CDA R2 document.This extraction routine, at this point, does not attempt to extract event code metadata from a generic CDA R2 document.org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable
DocumentEntry.parentDocument expresses the id and relationship of a parent document to this CDA document in the XDS Regisry.org.openehealth.ipf.commons.ihe.xds.core.metadata.AssociationType
DocumentEntry.parentDocument expresses the id and relationship of a parent document to this CDA document in the XDS Regisry.List<org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable>
Extracts all patientId information from the CDA: ClinicalDocument/recordTarget/patientRole/id
NOTES: 1.org.openehealth.ipf.commons.ihe.xds.core.metadata.PatientInfo
Extracts the relevant sourcePatientInfo information from the CDA: ClinicalDocument/recordTarget/patientRole
NOTES: 1.org.openehealth.ipf.commons.ihe.xds.core.metadata.Code
Extracts the relevant typeCode from CDA.org.openehealth.ipf.commons.ihe.xds.core.metadata.Code
Extracts the relevant typeCode.Methods inherited from class org.projecthusky.common.communication.CDAR2Extractor
atLeastOne, extract, extractAuthorPerson, extractAuthors, extractAvailabilityStatus, extractClassCode, extractComments, extractCreationTime, extractEntryUUID, extractEventCodes, extractExtensions, extractFormatCode, extractHash, extractHealthCareFacilityTypeCode, extractLanguageCode, extractLegalAuthenticator, extractMimeType, extractRepositoryUniqueId, extractServiceStartTime, extractServiceStopTime, extractSize, extractSourcePatientId, extractTitle, extractUniqueId, extractURI, map, map, map, map, map, map, map, mapXcn
-
Constructor Details
-
CDAR2ExtractorAt
Loads CDA Document- Parameters:
cda
- the CDA R2 document to extract metadata from for the document entry metadata. Cannot be null.
-
-
Method Details
-
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 classCDAR2Extractor
-
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
-
extractEventStopTime
This extraction routine, at this point, does not attempt to extract event code metadata from a generic CDA R2 document.- Returns:
- null
-
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 classCDAR2Extractor
-
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 classCDAR2Extractor
- 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 classCDAR2Extractor
-