|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openhealthexchange.openpixpdq.ihe.impl_v2.hl7.HL7v25
public class HL7v25
The utility class for HL7 v2.5 messages.
Field Summary | |
---|---|
static java.lang.String |
birhtdateFormat
|
Constructor Summary | |
---|---|
HL7v25()
|
Method Summary | |
---|---|
static com.misyshealthcare.connect.net.Identifier |
extractAssigningAuthority(ca.uhn.hl7v2.model.GenericComposite composite)
Extracts assigning authority from a GenericComposite. |
static PatientIdentifier |
extractId(ca.uhn.hl7v2.model.GenericComposite composite,
com.misyshealthcare.connect.net.IConnectionDescription connection)
Extracts ID with assigning authority from a GenericComposite. |
static java.lang.String |
getErrorString(ca.uhn.hl7v2.model.v25.segment.ERR err,
java.lang.String type)
Creates a human-readable string our of an HL7 ERR segment. |
static void |
populateDSC(ca.uhn.hl7v2.model.v25.segment.DSC dsc,
java.lang.String pointer)
Populates DSC segment |
static void |
populateERR(ca.uhn.hl7v2.model.v25.segment.ERR err,
java.lang.String segmentId,
java.lang.String sequence,
java.lang.String fieldPosition,
java.lang.String fieldRepetition,
java.lang.String componentNumber,
java.lang.String hl7ErrorCode,
java.lang.String hl7ErrorText)
Populates ERR segment. |
static void |
populateMSA(ca.uhn.hl7v2.model.v25.segment.MSA msa,
java.lang.String acknowledgmentCode,
java.lang.String messageControlId)
Populates MSA segment, used by, for example, PIX Query response |
static void |
populateMSH(ca.uhn.hl7v2.model.v25.segment.MSH msh,
java.lang.String type,
java.lang.String event,
java.lang.String id,
com.misyshealthcare.connect.net.IConnectionDescription connection)
Populates an HL7 v2.5 MSH segment according to the IHE standard |
static void |
populateMSH(ca.uhn.hl7v2.model.v25.segment.MSH msh,
java.lang.String type,
java.lang.String event,
java.lang.String id,
com.misyshealthcare.connect.net.Identifier sendingApplication,
com.misyshealthcare.connect.net.Identifier sendingFacility,
com.misyshealthcare.connect.net.Identifier receivingApplication,
com.misyshealthcare.connect.net.Identifier receivingFacility)
Populates an HL7 v2.5 MSH segment according to the IHE standard |
static void |
populateQAK(ca.uhn.hl7v2.model.v25.segment.QAK qak,
java.lang.String queryTag,
java.lang.String responseStatus)
Populates QAK segment. |
static void |
populateQAK(ca.uhn.hl7v2.model.v25.segment.QAK qak,
java.lang.String queryTag,
java.lang.String responseStatus,
int totalNum,
int thisNum,
int remainingNum)
Populates QAK segment. |
static java.util.Date |
unformatDTM(ca.uhn.hl7v2.model.v25.datatype.DTM dtm,
boolean doTime)
Turns an HL7 v2.5 DTM structure into a Java Date object. |
static void |
updateMSH(ca.uhn.hl7v2.model.v25.segment.MSH msh,
java.lang.String id)
Updates an HL7 v2.5 message header for a repeat use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String birhtdateFormat
Constructor Detail |
---|
public HL7v25()
Method Detail |
---|
public static void populateMSH(ca.uhn.hl7v2.model.v25.segment.MSH msh, java.lang.String type, java.lang.String event, java.lang.String id, com.misyshealthcare.connect.net.IConnectionDescription connection) throws ca.uhn.hl7v2.model.DataTypeException, IheConfigurationException
msh
- the MSH segmenttype
- the type of message the segment belongs toevent
- the event that triggered this messageid
- the message control ID for this message
ca.uhn.hl7v2.model.DataTypeException
- When supplied data is inappropriate
IheConfigurationException
- When the connection to which this will be sent if not configured properlypublic static void populateMSH(ca.uhn.hl7v2.model.v25.segment.MSH msh, java.lang.String type, java.lang.String event, java.lang.String id, com.misyshealthcare.connect.net.Identifier sendingApplication, com.misyshealthcare.connect.net.Identifier sendingFacility, com.misyshealthcare.connect.net.Identifier receivingApplication, com.misyshealthcare.connect.net.Identifier receivingFacility) throws ca.uhn.hl7v2.model.DataTypeException
msh
- the MSH segmenttype
- the type of message the segment belongs toevent
- the event that triggered this messageid
- the message control ID for this messagesendingApplication
- the sending applicationsendingFacility
- the sending facilityreceivingApplication
- the receiving applicationreceivingFacility
- the receiving facility
ca.uhn.hl7v2.model.DataTypeException
- When supplied data is inappropriatepublic static void updateMSH(ca.uhn.hl7v2.model.v25.segment.MSH msh, java.lang.String id) throws ca.uhn.hl7v2.model.DataTypeException
msh
- the message header to updateid
- the new message control id for this header
ca.uhn.hl7v2.model.DataTypeException
- When the date/time cannot be setpublic static java.lang.String getErrorString(ca.uhn.hl7v2.model.v25.segment.ERR err, java.lang.String type)
err
- the ERR segmenttype
- use either "PIX" or "PDQ";
public static java.util.Date unformatDTM(ca.uhn.hl7v2.model.v25.datatype.DTM dtm, boolean doTime) throws ca.uhn.hl7v2.model.DataTypeException
dtm
- the DTM structuredoTime
- True if the time should be included in the result
ca.uhn.hl7v2.model.DataTypeException
- When there is a problem extracting the HL7 data from the DTMpublic static void populateMSA(ca.uhn.hl7v2.model.v25.segment.MSA msa, java.lang.String acknowledgmentCode, java.lang.String messageControlId) throws ca.uhn.hl7v2.model.DataTypeException
msa
- the Message Acknowledgment segmentacknowledgmentCode
- the two letter of acknowledgment codemessageControlId
- the message control Id
ca.uhn.hl7v2.model.DataTypeException
- When MSA segment values cannot be setpublic static void populateQAK(ca.uhn.hl7v2.model.v25.segment.QAK qak, java.lang.String queryTag, java.lang.String responseStatus, int totalNum, int thisNum, int remainingNum) throws ca.uhn.hl7v2.model.DataTypeException
qak
- the query acknowledgment segmentqueryTag
- the query tagresponseStatus
- the response statustotalNum
- the total number of records found by this querythisNum
- the the number of records returned in this pay-loadremainingNum
- the remaining number of records yet to be returned
ca.uhn.hl7v2.model.DataTypeException
- When QAK segment values cannot be set.public static void populateQAK(ca.uhn.hl7v2.model.v25.segment.QAK qak, java.lang.String queryTag, java.lang.String responseStatus) throws ca.uhn.hl7v2.model.DataTypeException
qak
- The query acknowledgment segmentqueryTag
- The query tagresponseStatus
- The response status
ca.uhn.hl7v2.model.DataTypeException
- When QAK segment values cannot be set.public static void populateDSC(ca.uhn.hl7v2.model.v25.segment.DSC dsc, java.lang.String pointer) throws ca.uhn.hl7v2.model.DataTypeException
dsc
- the DSC segment to be populatedpointer
- the pointer id
ca.uhn.hl7v2.model.DataTypeException
- When DSC segment values cannot be set.public static void populateERR(ca.uhn.hl7v2.model.v25.segment.ERR err, java.lang.String segmentId, java.lang.String sequence, java.lang.String fieldPosition, java.lang.String fieldRepetition, java.lang.String componentNumber, java.lang.String hl7ErrorCode, java.lang.String hl7ErrorText) throws ca.uhn.hl7v2.model.DataTypeException, ca.uhn.hl7v2.HL7Exception
err
- the ERR segment to be populatedsegmentId
- the id of the segment that caused the errorsequence
- the sequence of the segmentfieldPosition
- the field position where the error isfieldRepetition
- the repetition of the error fieldcomponentNumber
- the component number in the error fieldhl7ErrorCode
- the HL7 error codehl7ErrorText
- the HL7 error text
ca.uhn.hl7v2.model.DataTypeException
- When ERR segment values cannot be set.
ca.uhn.hl7v2.HL7Exception
- When HL7 related issue happenspublic static PatientIdentifier extractId(ca.uhn.hl7v2.model.GenericComposite composite, com.misyshealthcare.connect.net.IConnectionDescription connection) throws ca.uhn.hl7v2.model.DataTypeException
composite
- a composite dataconnection
- the connection description
PatientIdentifier
ca.uhn.hl7v2.model.DataTypeException
public static com.misyshealthcare.connect.net.Identifier extractAssigningAuthority(ca.uhn.hl7v2.model.GenericComposite composite) throws ca.uhn.hl7v2.model.DataTypeException
composite
- the composite data
ca.uhn.hl7v2.model.DataTypeException
- if there is any data type error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |