beautypg.com

Query by id, Qry/orf format – Welch Allyn Connectivity Server - Programmers guide User Manual

Page 40

background image

36

WACS outbound HL7 messages

Welch Allyn Connectivity Server

Query by ID

This section covers these two formats for Query by ID:

QRY/ORF

QBP/RSP

QRY/ORF format

QRY^R02 query segments

Segment QRD: Query definition

QRD-2: R
QRD-3: I
QRD-8: List of Patient’s IDs
QRD-9: RES

Segment QRF: Query filter

QRF-4: List of Data Requested
QRF-9: Start/End Time and Interval

QRY/ORF query and reply example

Get the heart rate and respiration rate of Patient ID GA003560 from 2003/06/24 11:50:00
to 2003/06/24 11:50:02 interval of 1 sec.

QRY query:

MSH|^~\&|Van Goe^Edgar^A||||20030624121618.151-0800||QRY^R02|200306241216181517|P|2.4
QRD|20030624121618.191-0800|R|I|Q1056482178191||||GA003560|RES
QRF||||Heart Rate~RR/BR|||||^&1^^20030624115000-0800^20030624115002-0800

ORF reply:

MSH|^~\&|WAP^WAP||||20030624121744.994-0800||ORF^R04|20030624121744995a|P|2.4
QRD|20030624121618.191-0800|R|I|Q1056482178191||||GA003560|RES
QRF||||Heart Rate~RR/BR|||||^&1^^20030624115000-0800^20030624115002-0800
PID|1|GA003560|GA003560
OBR|1|||VITALS^Vital Signs^WAP|||20030624115001.000-0800
OBX|1|ST|Heart Rate^Heart Rate^WAP||80.0|^BPM||||||||20030624115000.000-0800
OBX|2|ST|RR/BR^RR/BR^WAP||20.0|^Br/M||||||||20030624115000.000-0800
OBR|2|||VITALS^Vital Signs^WAP|||20030624115002.000-0800
OBX|1|ST|Heart Rate^Heart Rate^WAP||80.0|^BPM||||||||20030624115001.000-0800
OBX|2|ST|RR/BR^RR/BR^WAP||20.0|^Br/M||||||||20030624115001.000-0800