Go to the first, previous, next, last section, table of contents.

Resolving a Patient ID

Synopsis

/usr/hl7/etc/PatByBed id

Description

The PatByBed script is used to resolve a patient identifier as entered by the operator into the radiometer device into real patient data, including medical record number, name and date of birth. The script performs arbitrary commands and returns one line of output to the standard output device, which specifies the following data items:

  1. visit number
  2. internal patient id
  3. last name
  4. first name
  5. date of birth
  6. sex

Optional double quotes `"' may be used in order to mark strings with inherent spaces or tabs. The data items should be delimited by single ASCII HT (tab, 0x0A) characters. The keyword NULL, all-uppercase without quotes, stands for the database NULL value. The date of birth is formatted as `DDxMMx[CC]YY' where x is any non numeric character

Examples

The PatByBed script is called as a reading pipe from the abl300 and abl500 programs:

/usr/hl7/etc/PatByBed 601-1

For the ABL to CareVue interface chain, a remote shell is used in order to directly log into the CareVue host, where an idb job is called to fetch the patient data:

#!/bin/sh
rsh -K -l $CVUSER $CVHOST "
. /usr/M1215A/carevue/etc/carevue_env ;
. /usr/M1215A/carevue/etc/go_charting ;
idb -s -q 2>/dev/null <<__END__
set ColumnMode;
set WaitMode;
select objectId into BEDOID from BedConfig where name=\"$1\";
select prid into PATID from PtVisit where inBed=(BedConfig,\\\$BEDOID);
set Patient \\\$PATID;
select acctNum, medRecNum, name, Vorname, DOB, sex from CfgPatients;
__END__
"

A sample output might be:

"12345"	"08/15-7411"	"Doe"	NULL	"19/02/1969"	"M"

Environment

CVUSER
CVHOST
used in the above example script for the user and host to log into a CareVue host. Note that this is not fixed. The actual policy used to dynamically configuring the user and host is described in section Configuring the CareVue Host

See Also

sh(1), rsh(1), idb(1), section Converting Printer Output to HL7, section An ASTM to HL7 Gateway for the ABL 500.


Go to the first, previous, next, last section, table of contents.