Package ca.cdr.test.hl7v2
Class Hl7V2TestDataHelper
java.lang.Object
ca.cdr.test.hl7v2.Hl7V2TestDataHelper
Creates HL7 V2 test data
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHl7V2TestDataHelper
(FhirContext theFhirContext, ca.uhn.hl7v2.DefaultHapiContext v2Ctx) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtraComponent
(ca.uhn.hl7v2.model.AbstractType theTarget, int theComponentIndex, String theValue) static Hl7V2TestDataHelper
buildDefault
(FhirContext theFhirContext) ca.uhn.hl7v2.model.v25.message.ADT_A01
ca.uhn.hl7v2.model.v25.message.ADT_A01
createAdtA01
(boolean theValid) ca.uhn.hl7v2.model.v25.message.ADT_A03
ca.uhn.hl7v2.model.v25.message.ADT_A06
ca.uhn.hl7v2.model.v25.message.ADT_A06
The ADT^A07 trigger uses the same structure as ADT^A06 (i.e.ca.uhn.hl7v2.model.v25.message.ADT_A09
ca.uhn.hl7v2.model.v25.message.ADT_A09
ca.uhn.hl7v2.model.v25.message.ADT_A21
ca.uhn.hl7v2.model.v25.message.ADT_A39
The ADT^A42 trigger uses the same structure as ADT^A39 (i.e.ca.uhn.hl7v2.model.v25.message.ADT_A45
ca.uhn.hl7v2.model.v25.message.ADT_A54
ca.uhn.hl7v2.model.v25.message.ADT_A60
ca.uhn.hl7v2.model.v25.message.ADT_A60
createAdtA60
(boolean thePopulateEncounterFields) ca.uhn.hl7v2.model.v25.message.DFT_P03
ca.uhn.hl7v2.model.v25.message.ORM_O01
ca.uhn.hl7v2.model.v25.message.ORU_R01
ca.uhn.hl7v2.model.v25.message.RAS_O17
ca.uhn.hl7v2.model.v25.message.RAS_O17
createRasO17
(boolean hasMultipleComponents) ca.uhn.hl7v2.model.v25.message.RAS_O17
createRasO17
(boolean hasMultipleComponents, boolean bothComponentsAreCoded) ca.uhn.hl7v2.model.v25.message.RAS_O17
createRasO17
(boolean hasMultipleComponents, boolean bothComponentsAreCoded, boolean thePopulateOrc2, boolean thePopulateOrc3) ca.uhn.hl7v2.model.v25.message.RDE_O11
ca.uhn.hl7v2.model.v25.message.RDE_O11
createRdeO11
(boolean hasMultipleComponents) ca.uhn.hl7v2.model.v25.message.RDE_O11
createRdeO11
(boolean hasMultipleComponents, boolean bothComponentsAreCoded) ca.uhn.hl7v2.model.v25.message.SIU_S12
ca.uhn.hl7v2.model.v25.message.VXU_V04
void
populateAil
(ca.uhn.hl7v2.model.v25.segment.AIL theAil) void
populateAip
(ca.uhn.hl7v2.model.v25.segment.AIP theAip) void
populateAl1
(ca.uhn.hl7v2.model.v25.segment.AL1 theIam) void
populateDg1
(ca.uhn.hl7v2.model.v25.segment.DG1 theDg1) ca.uhn.hl7v2.model.v25.segment.DG1
populateDg1
(ca.uhn.hl7v2.model.v25.segment.DG1 theDg1, boolean includeDiagnosisTypeAndPriority) void
populateGt1
(ca.uhn.hl7v2.model.v25.segment.GT1 theGt1) void
populateIam
(ca.uhn.hl7v2.model.v25.segment.IAM theIam) void
populateIn1
(ca.uhn.hl7v2.model.v25.segment.IN1 theIn1) void
populateIn1Difference
(ca.uhn.hl7v2.model.v25.segment.IN1 theIn1, String identifier) void
populateIn2
(ca.uhn.hl7v2.model.v25.segment.IN2 theIn2) void
populateMinimalEncounter
(ca.uhn.hl7v2.model.v25.segment.PV1 thePv1, ca.uhn.hl7v2.model.v25.segment.PV2 thePv2, MinimalHl7v2ToFhirTestData.EncounterData theEncounter, MinimalHl7v2ToFhirTestData.HospitalData theHospital, MinimalHl7v2ToFhirTestData.PractitionerData thePractitioner) void
populateMinimalObservation
(ca.uhn.hl7v2.model.Message theMessage, ca.uhn.hl7v2.model.v25.segment.OBX theObx, MinimalHl7v2ToFhirTestData.ObservationData theObservationData) void
populateMinimalPatient
(ca.uhn.hl7v2.model.v25.segment.PID thePid, ca.uhn.hl7v2.model.v25.segment.PD1 thePd1, MinimalHl7v2ToFhirTestData.PatientData thePatientData) void
populateMsh
(ca.uhn.hl7v2.model.v25.segment.MSH theMsh, String messageType) void
populateNk1Employer
(ca.uhn.hl7v2.model.v25.segment.NK1 theNk1) void
populateNk1NextOfKin
(ca.uhn.hl7v2.model.v25.segment.NK1 theNk1) void
populateObxAssessmentHeight
(ca.uhn.hl7v2.model.Message theMessage, ca.uhn.hl7v2.model.v25.segment.OBX theObx) void
populateObxAssessmentWeight
(ca.uhn.hl7v2.model.Message a01, ca.uhn.hl7v2.model.v25.segment.OBX theObx) void
populateOrcForMedication
(ca.uhn.hl7v2.model.v25.segment.ORC theOrc, String theOrderControl, boolean thePopulateOrc2, boolean thePopulateOrc3) void
populatePid
(ca.uhn.hl7v2.model.v25.segment.PID thePid) void
populatePid
(ca.uhn.hl7v2.model.v25.segment.PID thePid, boolean theValid) void
populatePr1First
(ca.uhn.hl7v2.model.v25.segment.PR1 thePr1) void
populatePr1Second
(ca.uhn.hl7v2.model.v25.segment.PR1 thePr1) void
populatePv1
(ca.uhn.hl7v2.model.v25.segment.PV1 thePv1) void
populatePv2
(ca.uhn.hl7v2.model.v25.segment.PV2 thePv2) void
populateRolA
(ca.uhn.hl7v2.model.v25.segment.ROL theRol) void
populateRolB
(ca.uhn.hl7v2.model.v25.segment.ROL rol2) void
populateRolC
(ca.uhn.hl7v2.model.v25.segment.ROL rol3) void
populateRxe
(ca.uhn.hl7v2.model.v25.segment.RXE theRxe) void
populateRxr
(ca.uhn.hl7v2.model.v25.segment.RXR theRxr) void
populateSch
(ca.uhn.hl7v2.model.v25.segment.SCH theSch) void
populateXcn
(ca.uhn.hl7v2.model.v25.datatype.XCN theXCN) void
populateZxt
(ca.uhn.hl7v2.model.AbstractMessage theMsg)
-
Field Details
-
FACILITY_SYSTEM
- See Also:
-
-
Constructor Details
-
Hl7V2TestDataHelper
-
-
Method Details
-
buildDefault
-
addExtraComponent
public void addExtraComponent(ca.uhn.hl7v2.model.AbstractType theTarget, int theComponentIndex, String theValue) throws ca.uhn.hl7v2.model.DataTypeException - Throws:
ca.uhn.hl7v2.model.DataTypeException
-
createAdtA01
- Throws:
ca.uhn.hl7v2.HL7Exception
-
createAdtA01
public ca.uhn.hl7v2.model.v25.message.ADT_A01 createAdtA01(boolean theValid) throws ca.uhn.hl7v2.HL7Exception - Throws:
ca.uhn.hl7v2.HL7Exception
-
createAdtA03
- Throws:
ca.uhn.hl7v2.HL7Exception
-
createAdtA06
- Throws:
ca.uhn.hl7v2.HL7Exception
-
createAdtA07
The ADT^A07 trigger uses the same structure as ADT^A06 (i.e. ADT_A06)- Throws:
ca.uhn.hl7v2.HL7Exception
-
createAdtA10
- Throws:
ca.uhn.hl7v2.HL7Exception
-
createAdtA11
- Throws:
ca.uhn.hl7v2.HL7Exception
-
populateMinimalPatient
public void populateMinimalPatient(ca.uhn.hl7v2.model.v25.segment.PID thePid, ca.uhn.hl7v2.model.v25.segment.PD1 thePd1, MinimalHl7v2ToFhirTestData.PatientData thePatientData) throws ca.uhn.hl7v2.HL7Exception - Throws:
ca.uhn.hl7v2.HL7Exception
-
populateMinimalEncounter
public void populateMinimalEncounter(ca.uhn.hl7v2.model.v25.segment.PV1 thePv1, ca.uhn.hl7v2.model.v25.segment.PV2 thePv2, MinimalHl7v2ToFhirTestData.EncounterData theEncounter, MinimalHl7v2ToFhirTestData.HospitalData theHospital, MinimalHl7v2ToFhirTestData.PractitionerData thePractitioner) throws ca.uhn.hl7v2.HL7Exception - Throws:
ca.uhn.hl7v2.HL7Exception
-
populateMinimalObservation
public void populateMinimalObservation(ca.uhn.hl7v2.model.Message theMessage, ca.uhn.hl7v2.model.v25.segment.OBX theObx, MinimalHl7v2ToFhirTestData.ObservationData theObservationData) throws ca.uhn.hl7v2.model.DataTypeException - Throws:
ca.uhn.hl7v2.model.DataTypeException
-
createAdtA29
- Throws:
ca.uhn.hl7v2.HL7Exception
-
createAdtA42
The ADT^A42 trigger uses the same structure as ADT^A39 (i.e. ADT_A39)- Throws:
ca.uhn.hl7v2.HL7Exception
-
createAdtA45
- Throws:
ca.uhn.hl7v2.HL7Exception
-
createAdtA54
- Throws:
ca.uhn.hl7v2.HL7Exception
-
createAdtA60
- Throws:
ca.uhn.hl7v2.HL7Exception
-
createAdtA60
public ca.uhn.hl7v2.model.v25.message.ADT_A60 createAdtA60(boolean thePopulateEncounterFields) throws ca.uhn.hl7v2.HL7Exception - Throws:
ca.uhn.hl7v2.HL7Exception
-
createDftP03
- Throws:
ca.uhn.hl7v2.HL7Exception
-
createOrmO01
- Throws:
ca.uhn.hl7v2.HL7Exception
-
createOruR01
- Throws:
ca.uhn.hl7v2.HL7Exception
-
createRdeO11
- Throws:
ca.uhn.hl7v2.HL7Exception
-
createRdeO11
public ca.uhn.hl7v2.model.v25.message.RDE_O11 createRdeO11(boolean hasMultipleComponents) throws ca.uhn.hl7v2.HL7Exception - Throws:
ca.uhn.hl7v2.HL7Exception
-
createRdeO11
public ca.uhn.hl7v2.model.v25.message.RDE_O11 createRdeO11(boolean hasMultipleComponents, boolean bothComponentsAreCoded) throws ca.uhn.hl7v2.HL7Exception - Throws:
ca.uhn.hl7v2.HL7Exception
-
createSiuS12
- Throws:
ca.uhn.hl7v2.HL7Exception
-
createVxuV04
- Throws:
ca.uhn.hl7v2.HL7Exception
-
populateAil
- Throws:
ca.uhn.hl7v2.HL7Exception
-
populateAip
- Throws:
ca.uhn.hl7v2.HL7Exception
-
populateDg1
public void populateDg1(ca.uhn.hl7v2.model.v25.segment.DG1 theDg1) throws ca.uhn.hl7v2.model.DataTypeException - Throws:
ca.uhn.hl7v2.model.DataTypeException
-
populateDg1
public ca.uhn.hl7v2.model.v25.segment.DG1 populateDg1(ca.uhn.hl7v2.model.v25.segment.DG1 theDg1, boolean includeDiagnosisTypeAndPriority) throws ca.uhn.hl7v2.HL7Exception - Throws:
ca.uhn.hl7v2.HL7Exception
-
populateGt1
- Throws:
ca.uhn.hl7v2.HL7Exception
-
populateIam
- Throws:
ca.uhn.hl7v2.HL7Exception
-
populateAl1
- Throws:
ca.uhn.hl7v2.HL7Exception
-
populateIn1
public void populateIn1(ca.uhn.hl7v2.model.v25.segment.IN1 theIn1) throws ca.uhn.hl7v2.model.DataTypeException - Throws:
ca.uhn.hl7v2.model.DataTypeException
-
populateIn1Difference
public void populateIn1Difference(ca.uhn.hl7v2.model.v25.segment.IN1 theIn1, String identifier) throws ca.uhn.hl7v2.model.DataTypeException - Throws:
ca.uhn.hl7v2.model.DataTypeException
-
populateIn2
- Throws:
ca.uhn.hl7v2.HL7Exception
-
populateMsh
public void populateMsh(ca.uhn.hl7v2.model.v25.segment.MSH theMsh, String messageType) throws ca.uhn.hl7v2.HL7Exception - Throws:
ca.uhn.hl7v2.HL7Exception
-
populateNk1Employer
public void populateNk1Employer(ca.uhn.hl7v2.model.v25.segment.NK1 theNk1) throws ca.uhn.hl7v2.HL7Exception - Throws:
ca.uhn.hl7v2.HL7Exception
-
populateNk1NextOfKin
public void populateNk1NextOfKin(ca.uhn.hl7v2.model.v25.segment.NK1 theNk1) throws ca.uhn.hl7v2.HL7Exception - Throws:
ca.uhn.hl7v2.HL7Exception
-
populateObxAssessmentHeight
public void populateObxAssessmentHeight(ca.uhn.hl7v2.model.Message theMessage, ca.uhn.hl7v2.model.v25.segment.OBX theObx) throws ca.uhn.hl7v2.model.DataTypeException - Throws:
ca.uhn.hl7v2.model.DataTypeException
-
populateObxAssessmentWeight
public void populateObxAssessmentWeight(ca.uhn.hl7v2.model.Message a01, ca.uhn.hl7v2.model.v25.segment.OBX theObx) throws ca.uhn.hl7v2.model.DataTypeException - Throws:
ca.uhn.hl7v2.model.DataTypeException
-
populateOrcForMedication
public void populateOrcForMedication(ca.uhn.hl7v2.model.v25.segment.ORC theOrc, String theOrderControl, boolean thePopulateOrc2, boolean thePopulateOrc3) throws ca.uhn.hl7v2.HL7Exception - Throws:
ca.uhn.hl7v2.HL7Exception
-
populatePid
- Throws:
ca.uhn.hl7v2.HL7Exception
-
populatePid
public void populatePid(ca.uhn.hl7v2.model.v25.segment.PID thePid, boolean theValid) throws ca.uhn.hl7v2.HL7Exception - Throws:
ca.uhn.hl7v2.HL7Exception
-
populatePr1First
public void populatePr1First(ca.uhn.hl7v2.model.v25.segment.PR1 thePr1) throws ca.uhn.hl7v2.model.DataTypeException - Throws:
ca.uhn.hl7v2.model.DataTypeException
-
populatePr1Second
public void populatePr1Second(ca.uhn.hl7v2.model.v25.segment.PR1 thePr1) throws ca.uhn.hl7v2.model.DataTypeException - Throws:
ca.uhn.hl7v2.model.DataTypeException
-
populatePv1
- Throws:
ca.uhn.hl7v2.HL7Exception
-
populatePv2
- Throws:
ca.uhn.hl7v2.HL7Exception
-
populateRolA
public void populateRolA(ca.uhn.hl7v2.model.v25.segment.ROL theRol) throws ca.uhn.hl7v2.HL7Exception - Throws:
ca.uhn.hl7v2.HL7Exception
-
populateRolB
- Throws:
ca.uhn.hl7v2.HL7Exception
-
populateRolC
- Throws:
ca.uhn.hl7v2.HL7Exception
-
populateRxe
- Throws:
ca.uhn.hl7v2.HL7Exception
-
populateRxr
- Throws:
ca.uhn.hl7v2.HL7Exception
-
populateSch
- Throws:
ca.uhn.hl7v2.HL7Exception
-
populateZxt
- Throws:
ca.uhn.hl7v2.HL7Exception
-
createRasO17
- Throws:
ca.uhn.hl7v2.HL7Exception
-
createRasO17
public ca.uhn.hl7v2.model.v25.message.RAS_O17 createRasO17(boolean hasMultipleComponents) throws ca.uhn.hl7v2.HL7Exception - Throws:
ca.uhn.hl7v2.HL7Exception
-
createRasO17
public ca.uhn.hl7v2.model.v25.message.RAS_O17 createRasO17(boolean hasMultipleComponents, boolean bothComponentsAreCoded) throws ca.uhn.hl7v2.HL7Exception - Throws:
ca.uhn.hl7v2.HL7Exception
-
createRasO17
public ca.uhn.hl7v2.model.v25.message.RAS_O17 createRasO17(boolean hasMultipleComponents, boolean bothComponentsAreCoded, boolean thePopulateOrc2, boolean thePopulateOrc3) throws ca.uhn.hl7v2.HL7Exception - Throws:
ca.uhn.hl7v2.HL7Exception
-
populateXcn
public void populateXcn(ca.uhn.hl7v2.model.v25.datatype.XCN theXCN) throws ca.uhn.hl7v2.model.DataTypeException - Throws:
ca.uhn.hl7v2.model.DataTypeException
-