From: g3949 <g3...@ya...> - 2013-11-04 15:08:42
|
Hi, as a HAPI NewBee (and perhaps as a JAVA NewBee also) I want to ask You, how can i set the PatientName in a ORM Message. Also there are some Values where I can set their values useing a setValue methode...and some without such a methode...I'm confuesed about this ;-) While...I doing it like the following code: ORM_O01 orm = new ORM_O01(); orm.initQuickstart("ORM", "O01", "P"); Terser t = new Terser(orm); ORM_O01_PATIENT patient = orm.getPATIENT(); patient.getPID().getDateOfBirth().getTimeOfAnEvent().setValue("20011212"); patient.getPID().getPatientIDInternalID(0).getCx1_ID().setValue("20025548"); patient.getPID().getPid19_SSNNumberPatient().setValue("3915043969"); patient.getPID().getPatientName(); patient.getPID().getPid8_Sex().setValue("M"); patient.getPID().getCountyCode().setValue("US"); patient.getGT1().getEthnicGroup().setValue("American"); patient.getNTE().getNte1_SetIDNotesAndComments().setValue("deleting this message allowed"); t.set("/.PID-3","12202"); t.set("/.PID-5-1", "Testname"); t.set("/.PID-5-2", "JEFF"); t.set("/.PV1-1","O01"); t.set("/.PV1-2",createMessage.getDate()); t.set("/.PV1-5","Oh YEAH"); Thanks FP |