Medstrat Hl7 Spec
Medstrat Hl7 Spec
Functional Specification
Introduction
This document serves as a functional specification and technical requirements for integrating other products with a Medstrat PACS via Health Level 7 (HL7). This document adheres to the IHE Technical Framework (1). Please refer to the HL7 specification (2) for further details concerning HL7.
Implementation Type
The Medstrat echoes Server implements standard TCP/IP HL7 network interface. Batch-file submission of HL7 messages via a Network File System is not supported at this time. The echoes Server is set to receive HL7 on port 5555 by default.
Filtering
Please note that per the IHE Technical Framework, [t]he Image Manager and the Report Manager do not receive all Patient Registration events from the ADT System because it is not necessary for the Image Manager and Report Manager to be aware of all patients in the enterprise (since most will never have an imaging procedure). This means that only ORM or SIU messages scheduling a patient for a study are acceptable by the echoes server (Image Manager) and that echoes will instead reject any other message type. ADT messages are ONLY acceptable if the message exactly follows the conventions of an SIU message in that it sets a schedule for a patient to have an imaging study.
HL7 Acknowledgements
echoes sends an HL7 ACK message (MSA) after receiving a valid HL7 message and it sends a Negative ACK message (MSA) after receiving an invalid HL7 message.
Data Mapping
Partial determined by table 4.4-6 in the IHE Technical Framework (1) HL7 Segment: ORM HL7 Segment: SIU HL7 Segment: ADT
Field Name Study Date Study Time CPT Code -orStudy Description Patient Name Patient ID Date of Birth Patient Sex Modality AE Title Requesting Physician
DICOM Tag
SCH-11:3[0..7] PV2-8[0..7] SCH-11:3[8..11] PV2-8[8..11] SCH-2 SCH-7 PID-5 PID-3 PID-7 PID-8 SCH-8 PV1-8 PV1-9 PV1-1 PV2-31 PID-5 PID-3 PID-7 PID-8 PV2-13 PV1-8 PV1-9
Accession Number (0008, 0050) ORC-2 (0008, 1030) OBR-31 (0010, 0010) PID-5 (0010, 0020) PID-3 (0010, 0030) PID-7 (0010, 0040) PID-8 (0008, 0060) OBR-24 (0040, 0001) OBR-19
The DICOM tag value equivalents are taken from the HL7 message using the translation mapping above. The sender must make every attempt to provide an appropriate value for every DICOM field listed in this table for that message type. The DICOM tag data in the table are formatted in big-endian byte order. The HL7 mapping data in the table are formatted as SEGMENT-POSITION where SEGMENT is an HL7 message segment and POSITION is the index and subindices within that message segment where the actual value will be obtained. Some values of POSITION do not represent an individual position, but rather are a nested position or a range. Nested positions are represented as A:B where A is the main index and B is the subindex. Ranges are represented as [M..N] where the range M to N is the applied after having applied the previous indicies. All
index values are zero-indexed (they start counting from zero). Segment names, such as PID, are included in the indexing and are always at index zero (0).
Data Formatting
The separators and special characters within the HL7 message are as follows: Name Field Separator Component Separator Repetition Separator Quote Char Subcomponent Separator Character | ^ ~ & Meaning Separates message fields within a segment Separates components within a field Separates repeated items Quotes values within a field Separates subcomponents within a component
Workflow
When an HL7 message creates an appointment, the Accession Number is stored for future reference as the index to be used by future messages that wish to modify or cancel that same appointment. If a modify or cancel message is received and there is no appointment in the worklist with a matching Accession Number, then the message is ignored. Any HL7 message received is assumed to be concerning an appointment for an imaging procedure. No filtering is ever done. All HL7 messages are assumed to either create, modify, or cancel an appointment and all appointments will show up on the practices worklist at the modality. This means that, for example, sending the schedule for the physical therapy office to the othopedic offices PACS will cause the physical therapy appointments to show up on the Xray worklist. Be careful to only send HL7 messages concerning the schedule for imaging appointments! If an appointment should only show up on one, specific modality (e.g., the practices MRI worklist), then send an ORM message and specify both the Modality and AE Title in the OBR segment.
MSH
The following fields are required:
Seq Name 1 Field Separator 2 Encoding Characters 3 Sending Application 4 Sending Facility 5 Receiving Application 6 Receiving Facility 7 Date/Time of Message 8 Security 9 Message Type Len Type Description and Format Information 1 4 180 180 180 180 26 40 7 ST ST HD HD HD HD TS ST CM | ^~\& Site specific Site specific Site specific Site specific YYYYMMDDHHMMSS+0000 Site specific ORM SIU^S12 SIU^S14 SIU^S15 SIU^S17 ADT^A05 ADT^A08 ADT^A38 Create Create Update Cancel Delete Create Update Cancel Order Appointment Appointment Appointment Appointment Appointment Appointment Appointment
20 3 60 15 2
ST PT VID NM ID
Unique number from Interface parameters (First 5 characters) Identifier HL7 Version Unique number from Interface parameters. AL
PID
The following fields are required:
Seq Name 3 Internal Patient ID 5 Patient Name 7 Date of Birth 8 Sex Len 20 48 26 1 Type Description and Format Information CX XPN TS IS Patient Identification (Internal) Patient Name as: LAST^FIRST^MI YYYYMMDD One of: M, F, or O
PV1
The following fields may be required:
Seq Name 1 Visit Number 7 Study Datetime 8 Attending Doctor 9 Referring Doctor Len 1 12 60 60 Type Description and Format Information IS TS XCN XCN Accession Number (ADT only) YYYYMMDDHHMM (ORM only) ID^LAST^FIRST^MI ID^LAST^FIRST^MI
PV2
The following fields may be required:
Seq Name 8 Study Datetime 13 Modality 31 Appointment Reason Len Typ Description and Format Information e
12 TS YYYYMMDDHHMM (ADT only) 10 ID One of: CR, DR, DX, CT, MR, SC, or OT 200 CE CPT Code -or- Study Description (ADT only)
A sample PV2 segment from an ADT message: PV2|0002226^00001|||||||^^^200909300230||OV^OFFICE VISIT||| DX||||CHEST XRAY|||||||LOW_LVL|||||||71010||
SCH
The following fields are required for an SIU message:
Field Name Len 75 200 10 12 Type Description and Format Information EI CE ID TS Accession Number (SIU only) CPT Code -or- Study Description (SIU only) One of: CR, DR, DX, CT, MR, SC, or OT YYYYMMDDHHMM (SIU only)
ORC
The following fields may be required:
Seq Name 1 Order Control 2 Accession Number 5 Order Status 7 Quantity / Timing Len Type Description and Format Information 2 ID NW (New), XO (Update), CA (Cancel), SC (Schedule) ST ID TQ Accession Number Site specific ^^^YYYYMMDDHHMMSS+000
60 2 200
OBR
The following fields are required:
Seq Name Len Type Description and Format Information 60 ST Modalitys Application Entity Title (e.g., MRI2) 10 300 ID CE One of: CR, DR, DX, CT, MR, SC, or OT CPT Code -or Study Description
A sample OBR segment from an ORM message: OBR|01|12|00575|AFSD164|MED|||||||411|LOW_LVL||| ANDERSON^SCOTT^A, MD|312-555-4321|33||MR02|||||MR||| 20081225150000+000|||STND|72195|
Works Cited
1. IHE Technical Framework Volume 2: Transactions, Revision 8.0 Final Text, Aug. 30th, 2007, ACC/HIMSS/RSNA. 2. HL7 Messaging standard version 2.5.1: An Application Protocol for Electronic Data Exchange in Healthcare Environments, 2007, Health Level Seven, Inc.