Class CCDAConverter
- java.lang.Object
-
- org.hl7.fhir.convertors.misc.ccda.CCDAConverter
-
public class CCDAConverter extends Object
Advance Directives Section 42348-3 : Allergies, Adverse Reactions, Alerts Section 48765-2 : List(AlleryIntolerance) processAdverseReactionsSection Anesthesia Section 59774-0 : Assessment Section 51848-0 : Assessment and Plan Section 51487-2 : Chief Complaint Section 10154-3 : Chief Complaint and Reason for Visit Section 46239-0 : Complications 55109-3: DICOM Object Catalog Section - DCM 121181 : Discharge Diet Section 42344-2 : Encounters Section 46240-8: Family History Section 10157-6 : Findings Section 18782-3 : Functional Status Section 47420-5 : General Status Section 10210-3 : History of Past Illness Section 11348-0 : History of Present Illness Section 10164-2 : Hospital Admission Diagnosis Section 46241-6 : Hospital Consultations Section 18841-7 : Hospital Course Section 8648-8 : Hospital Discharge Diagnosis Section 11535-2 : Hospital Discharge Instructions Section : Hospital Discharge Medications Section (entries optional) 10183-2 : Hospital Discharge Physical Section 10184-0 : Hospital Discharge Studies Summary Section 11493-4 : Immunizations Section 11369-6 : Interventions Section 62387-6 : Medical Equipment Section 46264-8 : Medical (General) History Section 11329-0 : Medications Section 10160-0 : Medications Administered Section 29549-3 : Objective Section 61149-1 : Operative Note Fluid Section 10216-0 : Operative Note Surgical Procedure Section 10223-6 : Payers Section 48768-6 : Physical Exam Section 29545-1 : Plan of Care Section 18776-5 : Planned Procedure Section 59772-: Postoperative Diagnosis Section 10218-6 : Postprocedure Diagnosis Section 59769-0 : Preoperative Diagnosis Section 10219-4 : Problem Section 11450-4 : Procedure Description Section 29554-3: Procedure Disposition Section 59775-7 : Procedure Estimated Blood Loss Section 59770-8 : Procedure Findings Section 59776-5 : Procedure Implants Section 59771-6 : Procedure Indications Section 59768-2 : Procedure Specimens Taken Section 59773-2 : Procedures Section 47519-4 : List (Procedure) processProceduresSection Reason for Referral Section 42349-1 : Reason for Visit Section 29299-5 : Results Section 30954-2 : Review of Systems Section 10187-3 : Social History Section 29762-2 : List (Observation) processSocialHistorySection Subjective Section 61150-9: Surgical Drains Section 11537-8 : Vital Signs Section 8716-3 : List(Observation) processVitalSignsSectionMU Sections: Allergies/Adverse Reactions Problems Encounters Medications Results Vital Signs Procedures Immunizations Reason for Referral Hospital Discharge Instructions Functional Status Plan of Care Hospital Discharge Medication All of General Header
- Author:
- Grahame
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCCDAConverter.ProcedureTypestatic classCCDAConverter.SocialHistoryType
-
Field Summary
Fields Modifier and Type Field Description protected CDAUtilitiescdaprotected org.hl7.fhir.dstu3.model.Compositioncompositionprotected org.hl7.fhir.dstu3.context.IWorkerContextcontextprotected Convertconvertprotected Elementdocprotected org.hl7.fhir.dstu3.model.Bundlefeedprotected Map<String,org.hl7.fhir.dstu3.model.Practitioner>practitionerCacheprotected IntegerrefCounterprotected org.fhir.ucum.UcumServiceucumSvc
-
Constructor Summary
Constructors Constructor Description CCDAConverter(org.fhir.ucum.UcumService ucumSvc, org.hl7.fhir.dstu3.context.IWorkerContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.hl7.fhir.dstu3.model.ListResource.ListEntryComponentaddItemToList(org.hl7.fhir.dstu3.model.ListResource list, org.hl7.fhir.dstu3.model.DomainResource ai)protected StringaddReference(org.hl7.fhir.dstu3.model.DomainResource r, String title, String id)protected voidaddToCodeableList(List<org.hl7.fhir.dstu3.model.CodeableConcept> list, org.hl7.fhir.dstu3.model.CodeableConcept code)protected voidaddToContactList(List<org.hl7.fhir.dstu3.model.ContactPoint> list, org.hl7.fhir.dstu3.model.ContactPoint c)protected voidaddToIdList(List<org.hl7.fhir.dstu3.model.Identifier> list, org.hl7.fhir.dstu3.model.Identifier id)protected voidcheckNoNegation(Element act, String path)protected voidcheckNoNegationOrNullFlavor(Element act, String path)protected voidcheckNoSubject(Element act, String path)org.hl7.fhir.dstu3.model.Bundleconvert(InputStream stream)protected org.hl7.fhir.dstu3.model.Composition.DocumentConfidentialityconvertConfidentiality(Element child)protected StringgetIdForEntity(Element assignedEntity)protected org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponentmakeAttester(Element a1, org.hl7.fhir.dstu3.model.Composition.CompositionAttestationMode mode, String title)protected StringmakeAuthor(Element auth)protected voidmakeDocument()protected StringmakeOrganization(Element org, String name)protected org.hl7.fhir.dstu3.model.ReferencemakeReferenceToPractitionerForAssignedEntity(Element assignedEntity, org.hl7.fhir.dstu3.model.DomainResource r)protected StringmakeSubject()protected StringmakeUUIDReference()protected StringnextRef()protected org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceReactionComponentprocessAdverseReactionObservation(Element reaction)protected org.hl7.fhir.dstu3.model.Composition.SectionComponentprocessAdverseReactionsSection(Element section)protected voidprocessAllergyProblemAct(org.hl7.fhir.dstu3.model.ListResource list, Element concern)protected voidprocessComponentSections(List<org.hl7.fhir.dstu3.model.Composition.SectionComponent> sections, Element container)protected StringprocessDevice(Element participantRole, org.hl7.fhir.dstu3.model.DomainResource r)protected org.hl7.fhir.dstu3.model.CodeableConceptprocessIndication(Element obs)protected voidprocessProcedure(org.hl7.fhir.dstu3.model.ListResource list, Element procedure, CCDAConverter.ProcedureType type)protected org.hl7.fhir.dstu3.model.Composition.SectionComponentprocessProceduresSection(Element section)protected StringprocessSDLocation(Element participantRole, org.hl7.fhir.dstu3.model.DomainResource r)protected org.hl7.fhir.dstu3.model.Composition.SectionComponentprocessSection(Element section)protected org.hl7.fhir.dstu3.model.Composition.SectionComponentprocessSocialHistorySection(Element section)protected voidprocessSocialObservation(org.hl7.fhir.dstu3.model.ListResource list, Element so, CCDAConverter.SocialHistoryType type)protected StringprocessVitalSignsObservation(Element comp, org.hl7.fhir.dstu3.model.ListResource list)protected voidprocessVitalSignsOrganizer(org.hl7.fhir.dstu3.model.ListResource list, Element organizer)protected org.hl7.fhir.dstu3.model.Composition.SectionComponentprocessVitalSignsSection(Element section)protected org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceCriticalityreadCriticality(String severity)protected org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceSeverityreadSeverity(String severity)
-
-
-
Field Detail
-
cda
protected CDAUtilities cda
-
feed
protected org.hl7.fhir.dstu3.model.Bundle feed
-
composition
protected org.hl7.fhir.dstu3.model.Composition composition
-
practitionerCache
protected Map<String,org.hl7.fhir.dstu3.model.Practitioner> practitionerCache
-
refCounter
protected Integer refCounter
-
ucumSvc
protected org.fhir.ucum.UcumService ucumSvc
-
context
protected org.hl7.fhir.dstu3.context.IWorkerContext context
-
-
Constructor Detail
-
CCDAConverter
public CCDAConverter(org.fhir.ucum.UcumService ucumSvc, org.hl7.fhir.dstu3.context.IWorkerContext context)
-
-
Method Detail
-
convert
public org.hl7.fhir.dstu3.model.Bundle convert(InputStream stream) throws Exception
- Throws:
Exception
-
addReference
protected String addReference(org.hl7.fhir.dstu3.model.DomainResource r, String title, String id) throws Exception
- Throws:
Exception
-
makeDocument
protected void makeDocument() throws Exception
- Throws:
Exception
-
convertConfidentiality
protected org.hl7.fhir.dstu3.model.Composition.DocumentConfidentiality convertConfidentiality(Element child) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeSubject
protected String makeSubject() throws Exception
- Throws:
Exception
-
makeOrganization
protected String makeOrganization(Element org, String name) throws Exception
- Throws:
Exception
-
makeAuthor
protected String makeAuthor(Element auth) throws Exception
- Throws:
Exception
-
makeUUIDReference
protected String makeUUIDReference()
-
makeAttester
protected org.hl7.fhir.dstu3.model.Composition.CompositionAttesterComponent makeAttester(Element a1, org.hl7.fhir.dstu3.model.Composition.CompositionAttestationMode mode, String title) throws Exception
- Throws:
Exception
-
processComponentSections
protected void processComponentSections(List<org.hl7.fhir.dstu3.model.Composition.SectionComponent> sections, Element container) throws Exception
- Throws:
Exception
-
processSection
protected org.hl7.fhir.dstu3.model.Composition.SectionComponent processSection(Element section) throws Exception
- Throws:
Exception
-
checkNoSubject
protected void checkNoSubject(Element act, String path) throws Exception
- Throws:
Exception
-
processProceduresSection
protected org.hl7.fhir.dstu3.model.Composition.SectionComponent processProceduresSection(Element section) throws Exception
- Throws:
Exception
-
processProcedure
protected void processProcedure(org.hl7.fhir.dstu3.model.ListResource list, Element procedure, CCDAConverter.ProcedureType type) throws Exception
- Throws:
Exception
-
processSDLocation
protected String processSDLocation(Element participantRole, org.hl7.fhir.dstu3.model.DomainResource r) throws Exception
- Throws:
Exception
-
processDevice
protected String processDevice(Element participantRole, org.hl7.fhir.dstu3.model.DomainResource r) throws Exception
- Throws:
Exception
-
processIndication
protected org.hl7.fhir.dstu3.model.CodeableConcept processIndication(Element obs) throws Exception
- Throws:
Exception
-
makeReferenceToPractitionerForAssignedEntity
protected org.hl7.fhir.dstu3.model.Reference makeReferenceToPractitionerForAssignedEntity(Element assignedEntity, org.hl7.fhir.dstu3.model.DomainResource r) throws Exception
- Throws:
Exception
-
addToContactList
protected void addToContactList(List<org.hl7.fhir.dstu3.model.ContactPoint> list, org.hl7.fhir.dstu3.model.ContactPoint c) throws Exception
- Throws:
Exception
-
addToIdList
protected void addToIdList(List<org.hl7.fhir.dstu3.model.Identifier> list, org.hl7.fhir.dstu3.model.Identifier id) throws Exception
- Throws:
Exception
-
addToCodeableList
protected void addToCodeableList(List<org.hl7.fhir.dstu3.model.CodeableConcept> list, org.hl7.fhir.dstu3.model.CodeableConcept code) throws Exception
- Throws:
Exception
-
getIdForEntity
protected String getIdForEntity(Element assignedEntity) throws Exception
- Throws:
Exception
-
processAdverseReactionsSection
protected org.hl7.fhir.dstu3.model.Composition.SectionComponent processAdverseReactionsSection(Element section) throws Exception
- Throws:
Exception
-
processAllergyProblemAct
protected void processAllergyProblemAct(org.hl7.fhir.dstu3.model.ListResource list, Element concern) throws Exception
- Throws:
Exception
-
processAdverseReactionObservation
protected org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceReactionComponent processAdverseReactionObservation(Element reaction) throws Exception
- Throws:
Exception
-
processSocialHistorySection
protected org.hl7.fhir.dstu3.model.Composition.SectionComponent processSocialHistorySection(Element section) throws Exception
- Throws:
Exception
-
processSocialObservation
protected void processSocialObservation(org.hl7.fhir.dstu3.model.ListResource list, Element so, CCDAConverter.SocialHistoryType type) throws Exception
- Throws:
Exception
-
checkNoNegation
protected void checkNoNegation(Element act, String path) throws Exception
- Throws:
Exception
-
checkNoNegationOrNullFlavor
protected void checkNoNegationOrNullFlavor(Element act, String path) throws Exception
- Throws:
Exception
-
addItemToList
protected org.hl7.fhir.dstu3.model.ListResource.ListEntryComponent addItemToList(org.hl7.fhir.dstu3.model.ListResource list, org.hl7.fhir.dstu3.model.DomainResource ai) throws Exception
- Throws:
Exception
-
readCriticality
protected org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceCriticality readCriticality(String severity)
-
readSeverity
protected org.hl7.fhir.dstu3.model.AllergyIntolerance.AllergyIntoleranceSeverity readSeverity(String severity)
-
processVitalSignsSection
protected org.hl7.fhir.dstu3.model.Composition.SectionComponent processVitalSignsSection(Element section) throws Exception
- Throws:
Exception
-
processVitalSignsOrganizer
protected void processVitalSignsOrganizer(org.hl7.fhir.dstu3.model.ListResource list, Element organizer) throws Exception
- Throws:
Exception
-
processVitalSignsObservation
protected String processVitalSignsObservation(Element comp, org.hl7.fhir.dstu3.model.ListResource list) throws Exception
- Throws:
Exception
-
-