org.vmdb.hl7
Class OBRSegment

java.lang.Object
  |
  +--org.vmdb.hl7.HL7Object
        |
        +--org.vmdb.hl7.HL7Segment
              |
              +--org.vmdb.hl7.OBRSegment

public class OBRSegment
extends HL7Segment

Observation Request (OBR) Segment.

Description: Network Connectivity For VMDB.

Copyright: Copyright (c) 2002-2003.

Company: Veterinary Medical Database (VMDB).

Now is the time

For VMDB reporting, the OBR defines the observations made during the patient visit. These fall into two general categories: physical observations about the patient and impressions concerning the patientÕs condition at the end of the visit. The values for these observations are reported in OBX segments, which are described below. There can be many OBXÕs per OBR, but only one OBR per PV1. Since all of the observations named in this segment are being reported after the fact for VMDB reporting, elements that are commonly used to track the status of an order as well as the specific filler and placer information are unneeded. Thus only a very few elements in this segment are needed by the ORU message. See HL7 Standard Chapter 4 for details.


Constructor Summary
OBRSegment()
          Construct an empty OBR segment.
OBRSegment(HL7SegmentContainer msgParent)
          Construct an empty OBR segment, setting its containing message object.
 
Method Summary
 java.lang.String getObservationDateTime()
          Get the observation date/time as a string.
 java.lang.String getResultStatus()
          Get Result status code.
 CEElement getUniversalServiceId()
          Get the universal service identifier as the complete CEElement.
 java.lang.String getUniversalServiceIdText()
          Get just the text of the Universal Service Id.
 void setObservationDateTime(java.lang.String sDateTime)
          Set the observation date/time of the message to string formatted date/time.
 void setResultStatus(java.lang.String sStatus)
          Set the result status code.
 void setUniversalServiceId(CEElement ceServiceId)
          Set the coded universal service identifier.
 void setUniversalServiceId(java.lang.String sCode, java.lang.String sText, java.lang.String sCodeType)
          Set the coded universal service identifier from the individual components of a CE element.
 
Methods inherited from class org.vmdb.hl7.HL7Segment
clearField, getField, getFieldValue, iterator, listFields, setField, setField, setField, setField, setField, setField, setField, toString, toXML
 
Methods inherited from class org.vmdb.hl7.HL7Object
getRule
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OBRSegment

public OBRSegment()
Construct an empty OBR segment.


OBRSegment

public OBRSegment(HL7SegmentContainer msgParent)
Construct an empty OBR segment, setting its containing message object.

Parameters:
msgParent - HL7SegmentContainer (Message or Loop) object that contains this segment.
Method Detail

setUniversalServiceId

public void setUniversalServiceId(java.lang.String sCode,
                                  java.lang.String sText,
                                  java.lang.String sCodeType)
Set the coded universal service identifier from the individual components of a CE element.

Parameters:
sCode - code value normally snomed
sText - spelled out term

setUniversalServiceId

public void setUniversalServiceId(CEElement ceServiceId)
Set the coded universal service identifier. This version takes a preformed CE element

Parameters:
ceServiceId - CEElement usually a constant from LOINC or SNOMED

getUniversalServiceId

public CEElement getUniversalServiceId()
Get the universal service identifier as the complete CEElement.

Returns:
CEElement with coded species

getUniversalServiceIdText

public java.lang.String getUniversalServiceIdText()
Get just the text of the Universal Service Id.

Returns:
String with id text spelled out.

setObservationDateTime

public void setObservationDateTime(java.lang.String sDateTime)
Set the observation date/time of the message to string formatted date/time.

Parameters:
sDateTime - String with date/time in yyyyMMddHHmmss format

getObservationDateTime

public java.lang.String getObservationDateTime()
Get the observation date/time as a string.

Returns:
String date/time

setResultStatus

public void setResultStatus(java.lang.String sStatus)
Set the result status code.

Parameters:
sStatus - String with date in ISO format

getResultStatus

public java.lang.String getResultStatus()
Get Result status code.

Returns:
String with status code

SourceForge.net Logo