/usr/hl7/etc/PatByBed id
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:
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
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"
CVUSER
CVHOST
sh(1), rsh(1), idb(1), section Converting Printer Output to HL7, section An ASTM to HL7 Gateway for the ABL 500.