public class ORUR01Handler
extends java.lang.Object
implements ca.uhn.hl7v2.app.Application
HL7InQueueProcessor| Constructor and Description |
|---|
ORUR01Handler() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public boolean canProcess(ca.uhn.hl7v2.model.Message message)
canProcess in interface ca.uhn.hl7v2.app.Applicationpublic 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.Applicationca.uhn.hl7v2.app.ApplicationExceptionprotected void processNK1(Patient patient, ca.uhn.hl7v2.model.v25.segment.NK1 nk1) throws ca.uhn.hl7v2.HL7Exception
patient - nk1 - ca.uhn.hl7v2.HL7Exceptionpublic 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 segmentsca.uhn.hl7v2.HL7Exceptionprotected 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 purposesca.uhn.hl7v2.HL7ExceptionCopyright © 2018 OpenMRS Inc.. All Rights Reserved.