本文整理汇总了Java中ca.uhn.hl7v2.model.v26.segment.PV1类的典型用法代码示例。如果您正苦于以下问题:Java PV1类的具体用法?Java PV1怎么用?Java PV1使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PV1类属于ca.uhn.hl7v2.model.v26.segment包,在下文中一共展示了PV1类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: fillPV1
import ca.uhn.hl7v2.model.v26.segment.PV1; //导入依赖的package包/类
/**
* Fills PV1 segment
*
* @param pv1
* @param patient
* @throws DataTypeException
* @throws HL7Exception
*/
private void fillPV1(final PV1 pv1, final HL7Patient patient, final Date beginDate)
throws DataTypeException, HL7Exception{
pv1.getPv11_SetIDPV1().setValue("1"); //$NON-NLS-1$
pv1.getPv12_PatientClass().setValue("O"); //$NON-NLS-1$
// PLV-13: Aktueller Aufenthaltsort des Patienten, optional
// Empfehlung: Wenn vorhanden, dann ausfüllen -> In unserem Fall leer lassen
pv1.getPv14_AdmissionType().setValue(""); //$NON-NLS-1$
pv1.getPv15_PreadmitNumber().getCx1_IDNumber().setValue(""); //$NON-NLS-1$
pv1.getPv16_PriorPatientLocation().getPl1_PointOfCare().setValue(""); //$NON-NLS-1$
// Fallnummer, optional (Beschreibung gemäss HL7 Standard)
// Empfehlung: Wenn vorhanden, dann ausfüllen -> In unserem Fall leer lassen oder den Key
// des Falles nehmen
pv1.getPv119_VisitNumber().getIDNumber().setValue(""); //$NON-NLS-1$
// ...
pv1.getPv144_AdmitDateTime().setValue(HL7Helper.dateToString(beginDate));
}
示例2: checkPv1
import ca.uhn.hl7v2.model.v26.segment.PV1; //导入依赖的package包/类
/**
* Check to make sure the PV1 is a check in as expected.
*/
private static void checkPv1(PV1 pv1) {
String patientClass = pv1.getPatientClass().getValue();
if (!PATIENT_CLASS.equals(patientClass)) throw (new UnsupportedOperationException("PV1 doesn't match expectations : patientClass=" + patientClass));
String room = pv1.getTemporaryLocation().getRoom().getValue();
if (!WAITING_ROOM.equals(room)) throw (new UnsupportedOperationException("PV1 doesn't match expectations : room=" + room));
}
示例3: addEmptyPV1
import ca.uhn.hl7v2.model.v26.segment.PV1; //导入依赖的package包/类
/**
* An empty PV1 segment helps the parser get the NTE's in the right spot, otherwise sometimes the NTE's end up in the OBR segment instead of it's own
* top level segment. This is a glitch with the HAPI parser.
* @throws DataTypeException
*/
private static void addEmptyPV1(REF_I12 referralMsg) throws DataTypeException {
REF_I12_PATIENT_VISIT pv=referralMsg.getPATIENT_VISIT();
PV1 pv1=pv.getPV1();
pv1.getPatientClass().setValue("N"); // N is not applicable
}