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 TypeMethodDescriptionvoidaddExtraComponent(ca.uhn.hl7v2.model.AbstractType theTarget, int theComponentIndex, String theValue) static Hl7V2TestDataHelperbuildDefault(FhirContext theFhirContext) ca.uhn.hl7v2.model.v25.message.ADT_A01ca.uhn.hl7v2.model.v25.message.ADT_A01createAdtA01(boolean theValid) ca.uhn.hl7v2.model.v25.message.ADT_A03ca.uhn.hl7v2.model.v25.message.ADT_A06ca.uhn.hl7v2.model.v25.message.ADT_A06The ADT^A07 trigger uses the same structure as ADT^A06 (i.e.ca.uhn.hl7v2.model.v25.message.ADT_A09ca.uhn.hl7v2.model.v25.message.ADT_A09ca.uhn.hl7v2.model.v25.message.ADT_A21ca.uhn.hl7v2.model.v25.message.ADT_A39The ADT^A42 trigger uses the same structure as ADT^A39 (i.e.ca.uhn.hl7v2.model.v25.message.ADT_A45ca.uhn.hl7v2.model.v25.message.ADT_A54ca.uhn.hl7v2.model.v25.message.ADT_A60ca.uhn.hl7v2.model.v25.message.ADT_A60createAdtA60(boolean thePopulateEncounterFields) ca.uhn.hl7v2.model.v25.message.DFT_P03ca.uhn.hl7v2.model.v25.message.ORM_O01ca.uhn.hl7v2.model.v25.message.ORU_R01ca.uhn.hl7v2.model.v25.message.RAS_O17ca.uhn.hl7v2.model.v25.message.RAS_O17createRasO17(boolean hasMultipleComponents) ca.uhn.hl7v2.model.v25.message.RAS_O17createRasO17(boolean hasMultipleComponents, boolean bothComponentsAreCoded) ca.uhn.hl7v2.model.v25.message.RAS_O17createRasO17(boolean hasMultipleComponents, boolean bothComponentsAreCoded, boolean thePopulateOrc2, boolean thePopulateOrc3) ca.uhn.hl7v2.model.v25.message.RDE_O11ca.uhn.hl7v2.model.v25.message.RDE_O11createRdeO11(boolean hasMultipleComponents) ca.uhn.hl7v2.model.v25.message.RDE_O11createRdeO11(boolean hasMultipleComponents, boolean bothComponentsAreCoded) ca.uhn.hl7v2.model.v25.message.SIU_S12ca.uhn.hl7v2.model.v25.message.VXU_V04voidpopulateAil(ca.uhn.hl7v2.model.v25.segment.AIL theAil) voidpopulateAip(ca.uhn.hl7v2.model.v25.segment.AIP theAip) voidpopulateAl1(ca.uhn.hl7v2.model.v25.segment.AL1 theIam) voidpopulateDg1(ca.uhn.hl7v2.model.v25.segment.DG1 theDg1) ca.uhn.hl7v2.model.v25.segment.DG1populateDg1(ca.uhn.hl7v2.model.v25.segment.DG1 theDg1, boolean includeDiagnosisTypeAndPriority) voidpopulateGt1(ca.uhn.hl7v2.model.v25.segment.GT1 theGt1) voidpopulateIam(ca.uhn.hl7v2.model.v25.segment.IAM theIam) voidpopulateIn1(ca.uhn.hl7v2.model.v25.segment.IN1 theIn1) voidpopulateIn1Difference(ca.uhn.hl7v2.model.v25.segment.IN1 theIn1, String identifier) voidpopulateIn2(ca.uhn.hl7v2.model.v25.segment.IN2 theIn2) voidpopulateMinimalEncounter(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) voidpopulateMinimalObservation(ca.uhn.hl7v2.model.Message theMessage, ca.uhn.hl7v2.model.v25.segment.OBX theObx, MinimalHl7v2ToFhirTestData.ObservationData theObservationData) voidpopulateMinimalPatient(ca.uhn.hl7v2.model.v25.segment.PID thePid, ca.uhn.hl7v2.model.v25.segment.PD1 thePd1, MinimalHl7v2ToFhirTestData.PatientData thePatientData) voidpopulateMsh(ca.uhn.hl7v2.model.v25.segment.MSH theMsh, String messageType) voidpopulateNk1Employer(ca.uhn.hl7v2.model.v25.segment.NK1 theNk1) voidpopulateNk1NextOfKin(ca.uhn.hl7v2.model.v25.segment.NK1 theNk1) voidpopulateObxAssessmentHeight(ca.uhn.hl7v2.model.Message theMessage, ca.uhn.hl7v2.model.v25.segment.OBX theObx) voidpopulateObxAssessmentWeight(ca.uhn.hl7v2.model.Message a01, ca.uhn.hl7v2.model.v25.segment.OBX theObx) voidpopulateOrcForMedication(ca.uhn.hl7v2.model.v25.segment.ORC theOrc, String theOrderControl, boolean thePopulateOrc2, boolean thePopulateOrc3) voidpopulatePid(ca.uhn.hl7v2.model.v25.segment.PID thePid) voidpopulatePid(ca.uhn.hl7v2.model.v25.segment.PID thePid, boolean theValid) voidpopulatePr1First(ca.uhn.hl7v2.model.v25.segment.PR1 thePr1) voidpopulatePr1Second(ca.uhn.hl7v2.model.v25.segment.PR1 thePr1) voidpopulatePv1(ca.uhn.hl7v2.model.v25.segment.PV1 thePv1) voidpopulatePv2(ca.uhn.hl7v2.model.v25.segment.PV2 thePv2) voidpopulateRolA(ca.uhn.hl7v2.model.v25.segment.ROL theRol) voidpopulateRolB(ca.uhn.hl7v2.model.v25.segment.ROL rol2) voidpopulateRolC(ca.uhn.hl7v2.model.v25.segment.ROL rol3) voidpopulateRxe(ca.uhn.hl7v2.model.v25.segment.RXE theRxe) voidpopulateRxr(ca.uhn.hl7v2.model.v25.segment.RXR theRxr) voidpopulateSch(ca.uhn.hl7v2.model.v25.segment.SCH theSch) voidpopulateXcn(ca.uhn.hl7v2.model.v25.datatype.XCN theXCN) voidpopulateZxt(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
-