|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.hl7.handler.ORUR01Handler
public class ORUR01Handler
Parses ORUR01 messages into openmrs Encounter objects Usage: GenericParser parser = new GenericParser(); MessageTypeRouter router = new MessageTypeRouter(); router.registerApplication("ORU", "R01", new ORUR01Handler()); Message hl7message = parser.parse(somehl7string);
HL7InQueueProcessor
Constructor Summary | |
---|---|
ORUR01Handler()
|
Method Summary | |
---|---|
boolean |
canProcess(ca.uhn.hl7v2.model.Message message)
Always returns true, assuming that the router calling this handler will only call this handler with ORU_R01 messages. |
protected Concept |
getConcept(java.lang.String hl7ConceptId,
java.lang.String codingSystem,
java.lang.String uid)
Get a concept object representing this conceptId and coding system. If codingSystem is 99DCT, then a new Concept with the given conceptId is returned. Otherwise, the coding system is looked up in the ConceptMap for an openmrs concept mapped to that code. |
java.util.List<ca.uhn.hl7v2.model.v25.segment.NK1> |
getNK1List(ca.uhn.hl7v2.model.v25.message.ORU_R01 oru)
finds NK1 segments in an ORU_R01 message. |
ca.uhn.hl7v2.model.Message |
processMessage(ca.uhn.hl7v2.model.Message message)
Processes an ORU R01 event message |
protected void |
processNK1(Patient patient,
ca.uhn.hl7v2.model.v25.segment.NK1 nk1)
process an NK1 segment and add relationships if needed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ORUR01Handler()
Method Detail |
---|
public boolean canProcess(ca.uhn.hl7v2.model.Message message)
canProcess
in interface ca.uhn.hl7v2.app.Application
public ca.uhn.hl7v2.model.Message processMessage(ca.uhn.hl7v2.model.Message message) throws ca.uhn.hl7v2.app.ApplicationException
processMessage
in interface ca.uhn.hl7v2.app.Application
ca.uhn.hl7v2.app.ApplicationException
protected void processNK1(Patient patient, ca.uhn.hl7v2.model.v25.segment.NK1 nk1) throws ca.uhn.hl7v2.HL7Exception
patient
- nk1
-
ca.uhn.hl7v2.HL7Exception
public java.util.List<ca.uhn.hl7v2.model.v25.segment.NK1> getNK1List(ca.uhn.hl7v2.model.v25.message.ORU_R01 oru) throws ca.uhn.hl7v2.HL7Exception
oru
- ORU_R01 message to be parsed for NK1 segments
ca.uhn.hl7v2.HL7Exception
protected Concept getConcept(java.lang.String hl7ConceptId, java.lang.String codingSystem, java.lang.String uid) throws ca.uhn.hl7v2.HL7Exception
hl7ConceptId
- the given hl7 conceptIdcodingSystem
- the coding system for this conceptid (e.g. 99DCT)uid
- unique string for this message for any error reporting purposes
ca.uhn.hl7v2.HL7Exception
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |