aclinical laboratory informationsystem … · manual pa.t.les.taepon.t.6 lablog ... laboratory...

5
CLIN. CHEM. 27/5, 704-708 (1981) 704 CLINICAL CHEMISTRY, Vol. 27, No. 5, 1981 CLIS, A Clinical Laboratory Information System Designed to Optimize Microcomputer Operation Charles Bishop This clinical laboratory information system (CuS), accepting patient and sample data and permitting interrogation and printout over a 24-h period, optimizes microcomputer operation by its linked-file structure and system design. The tasks of the computer are also minimized by utilizing the laboratory technologists to perform many traditional functions at which they are often faster and more versatile than is a small computer system. In CLIS, the request/result information and the patient demographic information are kept in two separate files and combined as needed. By entering daily samples, using a sequential number, re- quest/result information can be placed directly into the disk record block corresponding to that sequential number, without any searching. Patient demographic data are kept on a separate disk and are indexed in memory by a table of patient-identification numbers and three letters of the last name. The sample numbers relating to each patient are appended to his demographic file. Searching or printing first brings up the patient’s demographic information and then the samples and results associated with that patient. At the end of one day, all patient records are printed out and uncompleted samples are transferred to a third disk, which functions along with the daily request/result disk for retrieval of total patient information. All computer pro- grams are written in assembler language, results are stored in hexadecimal notation to 12-bit precision, with four bits for various flags, and results (either automated or manual) entered through interrupt service. This CLIS program, op- erating on relatively inexpensive microcomputer hardware, puts laboratory computerization within the reach of even the smallest clinical laboratory. Additional Keyphrases: computers . data handling methods for the small laboratory Commercial laboratory information systems are still costly, inadequate, and often fail to utilize state-of-the-art hardware and software. These systems generally arise by computeri- zation of present laboratory practices rather than by creative merging of computer capabilities and fundamental laboratory tasks. As microcomputers have become cheaper, easier to pro- gram, and more powerful, laboratorians themselves have been able to devise computerized systems rather than waiting for a commercial “turn key” system: In so doing, they have the opportunity to re-assess practices in the laboratory that have arisen historically but which might be organized quite dif- ferently in a computerized setting. Priorities for speed, reli- ability, and backup might also be different in the clinical laboratory than in the more usual commercial environment of computer system developers. Dept. of Medicine, School of Medicine, State University of New York at Buffalo, Buffalo, NY (personal mailing address: 508 Getzville Rd., Buffalo, NY 14226). Received Oct. 3, 1980; accepted Feb. 18, 1981. This paper describes a clinical laboratory information system (CLIS) built by first identifying the tasks to be ac- complished and, second, considering how these tasks could be best handled by a contemporary microcomputer system. As the system was being programmed, laboratory tasks that presented programming difficulties were re-examined, to seek a mode of operation that was more compatible with computer operation. The purpose of this paper is to stimulate discussion of al- ternative ways to design a computerized laboratory infor- mation system. Operations The microcomputer-based system described in this paper accepts test requests on samples submitted to a clinical lab- oratory, links these requests to a patient demographic file, and allows results (manual or automated) to be entered as tests are performed. The system may be interrogated at any time for test status and results, and interim patient reports may be generated. At the end of each 2-h period, the complete record of requests and results on each patient is printed, for return to that patient’s chart, and an alphabetic log for that day is printed for laboratory use. Any tests uncompleted are carried over to the next day, along with their patient demo- graphic records, and a list of samples to be saved is printed. Statistical and billing information can be derived from the files, and this information can be saved for future use, because new files are created each day. The overall operation of the system is described in the fol- lowing. Figure 1 shows the components of the system. Tech- nical details of the hardware and software are described in the Appendix. Sample Entry After bringing up the system and inserting the appropriate data disks, CLIS is ready to log in patients’ samples. The pa- tient identification number and (or) first three letters of the last name are entered on the cathode-ray tube (CRT) console. All possible matches are displayed sequentially on the CRT, and the operator must select the one, if any, that matches his patient’s description. If not found, the patient’s demographic data must be entered. Details of the sample, such as type, time of collection, and tests requested are then entered by re- sponding to prompts on the CRT console. Because sample entry takes some time, samples for a par- ticular combined test (e.g., SMA 6 + 12) can be numbered on both the request and sample, and the sample can be processed and analyzed while the computer entries are proceeding. If results are received before the patient’s requests have been entered, there is no problem if it is on a multiple test (e.g., SMA 6 + 12), because the source of the results indicates their mode of storage. It creates an error situation in the case of discrete manual tests, because a result must be stored in as- sociation with its test number. Result Entry A Technicon SMA-6 and -12 operate in parallel from a single sample. Results from each sample appear on two sep-

Upload: truongdiep

Post on 21-Aug-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: AClinical Laboratory InformationSystem … · ManuaL Pa.t.Les.taepon.t.6 LabLog ... laboratory already hadanefficient manual systemforgen- ... FileStructure Memory

CLIN. CHEM. 27/5, 704-708 (1981)

704 CLINICAL CHEMISTRY, Vol. 27, No. 5, 1981

CLIS,A Clinical Laboratory Information System Designed to OptimizeMicrocomputer OperationCharles Bishop

This clinical laboratory information system (CuS), acceptingpatient and sample data and permitting interrogation andprintout over a 24-h period, optimizes microcomputeroperation by its linked-file structure and system design.The tasks of the computer are also minimized by utilizingthe laboratory technologists to perform many traditionalfunctions at which they are often faster and more versatilethan is a small computer system. In CLIS, the request/resultinformation and the patient demographic information arekept in two separate files and combined as needed. Byentering daily samples, using a sequential number, re-quest/result information can be placed directly into the diskrecord block corresponding to that sequential number,without any searching. Patient demographic data are kepton a separate disk and are indexed in memory by a tableof patient-identification numbers and three letters of thelast name. The sample numbers relating to each patientare appended to his demographic file. Searching or printingfirst brings up the patient’s demographic information andthen the samples and results associated with that patient.At the end of one day, all patient records are printed outand uncompleted samples are transferred to a third disk,which functions along with the daily request/result disk forretrieval of total patient information. All computer pro-grams are written in assembler language, results are storedin hexadecimal notation to 12-bit precision, with four bitsfor various flags, and results (either automated or manual)entered through interrupt service. This CLIS program, op-erating on relatively inexpensive microcomputer hardware,puts laboratory computerization within the reach of eventhe smallest clinical laboratory.

Additional Keyphrases: computers . data handlingmethods for the small laboratory

Commercial laboratory information systems are still costly,

inadequate, and often fail to utilize state-of-the-art hardwareand software. These systems generally arise by computeri-zation of present laboratory practices rather than by creativemerging of computer capabilities and fundamental laboratorytasks.

As microcomputers have become cheaper, easier to pro-gram, and more powerful, laboratorians themselves have beenable to devise computerized systems rather than waiting fora commercial “turn key” system: In so doing, they have theopportunity to re-assess practices in the laboratory that havearisen historically but which might be organized quite dif-ferently in a computerized setting. Priorities for speed, reli-ability, and backup might also be different in the clinicallaboratory than in the more usual commercial environmentof computer system developers.

Dept. of Medicine, School of Medicine, State University of NewYork at Buffalo, Buffalo, NY (personal mailing address: 508 GetzvilleRd., Buffalo, NY 14226).

Received Oct. 3, 1980; accepted Feb. 18, 1981.

This paper describes a clinical laboratory informationsystem (CLIS) built by first identifying the tasks to be ac-complished and, second, considering how these tasks couldbe best handled by a contemporary microcomputer system.As the system was being programmed, laboratory tasks thatpresented programming difficulties were re-examined, to seeka mode of operation that was more compatible with computeroperation.

The purpose of this paper is to stimulate discussion of al-ternative ways to design a computerized laboratory infor-mation system.

OperationsThe microcomputer-based system described in this paper

accepts test requests on samples submitted to a clinical lab-oratory, links these requests to a patient demographic file, andallows results (manual or automated) to be entered as testsare performed. The system may be interrogated at any timefor test status and results, and interim patient reports maybe generated. At the end of each 2-h period, the completerecord of requests and results on each patient is printed, forreturn to that patient’s chart, and an alphabetic log for thatday is printed for laboratory use. Any tests uncompleted arecarried over to the next day, along with their patient demo-graphic records, and a list of samples to be saved is printed.Statistical and billing information can be derived from thefiles, and this information can be saved for future use, because

new files are created each day.The overall operation of the system is described in the fol-

lowing. Figure 1 shows the components of the system. Tech-nical details of the hardware and software are described in theAppendix.

Sample EntryAfter bringing up the system and inserting the appropriate

data disks, CLIS is ready to log in patients’ samples. The pa-tient identification number and (or) first three letters of thelast name are entered on the cathode-ray tube (CRT) console.All possible matches are displayed sequentially on the CRT,and the operator must select the one, if any, that matches hispatient’s description. If not found, the patient’s demographicdata must be entered. Details of the sample, such as type, timeof collection, and tests requested are then entered by re-sponding to prompts on the CRT console.

Because sample entry takes some time, samples for a par-ticular combined test (e.g., SMA 6 + 12) can be numbered onboth the request and sample, and the sample can be processedand analyzed while the computer entries are proceeding. Ifresults are received before the patient’s requests have beenentered, there is no problem if it is on a multiple test (e.g.,SMA 6 + 12), because the source of the results indicates theirmode of storage. It creates an error situation in the case ofdiscrete manual tests, because a result must be stored in as-sociation with its test number.

Result EntryA Technicon SMA-6 and -12 operate in parallel from a

single sample. Results from each sample appear on two sep-

Page 2: AClinical Laboratory InformationSystem … · ManuaL Pa.t.Les.taepon.t.6 LabLog ... laboratory already hadanefficient manual systemforgen- ... FileStructure Memory

Pa.t,eaL derogn.o.phc

COLOR YEL.;TRANSBIL .0 HB

354 II 29 26SEP80 JAS 125,2

HAZY0;

PHUBG

SE RALBCLNA

I 30SEP800840 30SEP800930

4.0 ; ALP 80 ; AST96 ;CREAT PEND; GLC

136 P04 3.9 ; PROT

7.6 ; PROT3B;

36 BIL113A; HCO37.7 ;URATE

.827

9.2A;

CAK

URE A

9.5 ; CHOL4.2 LII

8;

176143

CLINICAL CHEMISTRY, Vol. 27, No. 5, 1981 705

cRTCon.6ott

SampteInqulAy

PqINTER 1IitquiltyE.vto’t m#{128}445g54

SMA 6 5 122-SO Tn.tea6ace

Automtted 4t4utt4

cR1’2-SO Iatea(ace

ManuaL

Pa.t.Les.t aepon.t.6Lab Log

Fig. 1. Components of the Clinical Laboratory InformationSystem (cLIs)Theftmctlonsof the various parts are indicated beneath the boxes. Boxes shownIn dotted lines represent optional features. For details, see the text

arate strip charts and are then displayed in digital form on aCRT screen. The operator has 1 mm to edit out any resultsthat are technically unacceptable, off-scale, or out of qualitycontrol. The remaining record must be accepted by the op-erator within the minute or the record will be lost.

Manual results are entered at another CRT by the techni-cian performing the test. Prompts on the CRT screen indicatewhat information must be entered.

Implicit in this mode of data entry for either automated ormanual results is the assurance by the technologist that theresults are correct when they are entered into the data system.

This assurance includes both proper identification of thesample and accuracy of result. Results are not subsequentlychecked by supervisory personnel unless there is reason todisbelieve them. Our quality control program, for example,is on a go, no-go basis and if any batch of results is associatedwith unsatisfactory controls, such results may not be enteredinto the data system by the technologist without supervisorpermission. Every effort has been made to allow the tech-nologist entering test results to verify that data up to themoment of data entry. If subsequently any result appears to

1234567 TILLMAN,H.A.

be erroneous, the CLIS system offers only the option to rerunthat sample, either under the original number or preferablyunder a new number because a rerun will wipe out the priorresult.

inquiryAfter selecting the inquiry mode on the console CRT, the

operator enters the patient’s identification number and/orthree letters of the last name. The demographic informationon the first patient matching this information is displayed onthe screen, and the operator must decide if that informationdefines the patient sought. If not, the system can be asked todisplay records on subsequent patients until an acceptablematch is found or until no more patients remain in the list.When the operator verifies that the match is correct, all re-quests and results are displayed on the CRT screen. If desired,the operator may also request a printout of the CRT display.A sample format of the printout (and CRT display) is shownin Figure 2. The test results are flagged as above or below thereference values (or with a condition such as hemolysis thatmay make them uninterpretable), hence the physician canimmediately recognize abnormal results. Units and referencelimits are not included in this printout. That information,along with the full name for each test mnemonic, must besupplied on a separate sheet, which must be included in thepatient’s record (or could be printed on the back side of eachreport sheet). This approach to printing minimal data wasadopted to save printing time and space. Alternatively, theprinting could be on preprinted forms (having the disadvan-tages of cost and inflexibility toward change).

Interim and Final Reports on PatientsInterim reports have the same format as that shown in

Figure 2 except that the last line identifies it as an interimreport. Interim reports are generated at fixed times; inquiryreports are generated anytime, on request. Final reports havethe last line “24 Hour Final Report.”

Laboratory LogThe laboratory log lists alphabetically all patients handled

during a 24-h period, along with their test requests and results.The format is the same as in Figure 2 except the “do not chart”message is not included and the printout is paginated.

UR R I 30SEP801351 308EP801420

SE R I 30SEP800756 30SEP800815ACTH 123A

0 GLC 0 H(ETON 2A

SE R I 30SEP80 1052 30SEP80 1305

OH PENt’; TES PENLI

**INQUIRY REPORT,t’O NOT CHART**

Fig. 2. Inquiry Report as displayed on Console CRT or printed on Printer 1The items in the demographic (top) line Include: patient identification number, name, hospital location, sex, age, date of admission, physician-initials, and codeddiagnosis. The Items in the test lines include: type of sample, priority, patient status, date/time (24-h clock)collected, date/time received, date/time collectionstarted, minutes of collection, volume. standardized mnemonic for test,and flag (e.g., H-hemolyzed, A-above,B-below).Tests ordered but without results are markedPEND(Pending)

Page 3: AClinical Laboratory InformationSystem … · ManuaL Pa.t.Les.taepon.t.6 LabLog ... laboratory already hadanefficient manual systemforgen- ... FileStructure Memory

End-of-Day Routine Backup, Restart

706 CLINICAL CHEMISTRY, Vol. 27, No. 5, 1981

After final patient reports and the laboratory log have beenprinted, the various files are purged of records that are fin-ished and a list of uncompleted samples is printed. The systemis then readied for the next day’s operation. For detailed filemanipulation in the various stages see the Appendix.

Printing TimePrinting the patient reports and the laboratory log will take

considerable time. Laboratories operating around the clockand not wanting their computer system tied up for that timemight consider rapidly transferring the material to be printedto a tape, and perfonning the printing on another compatiblemicrocomputer system.

Remote Display or Printing

Inquiry responses (display or printout) could be availableremotely by utilizing dedicated lines or telephone lines inconjunction with a modem. Interim or final patient reportscould similarly be printed at another location.

Load ListsThe analyst about to perform an analysis needs a load list

of all samples on which that test was requested. Since ourlaboratory already had an efficient manual system for gen-erating load lists, this operation was not computerized. Morethan 75% of all sera are for Chemistry Profile. These aremarked with colored tape and placed in a special rack. Therest of the test load then is fairly easy to handle.

If computerization were required, a load list could be con-structed by searching the R and U files (see Appendix) forsamples on which the desired test had not been completed.A more convenient way would be to add the sample numberto each test list as the sample was entered into the CLIS sys-

tem. The latter approach would require considerable memoryspace.

Special ListingsThere is no end to the types of lists that could be generated

by the computer system and would be useful in some partic-ular laboratory.

All patients and results for a particular physician’s patientscould be displayed or printed by selectively searching thedemographic (D) file. Likewise, a list of all abnormal resultsfor the day could be printed. Quality Control results or his-tograms of all test results could also be printed. Sending outresults to private physicians or sending bills are useful tasksthat could be performed with the present computer systemor in conjunction with a larger one. Most of these routinesinvolve searching and printing and could be added mostconveniently to the end-of-day routines. CLIS is very modular,readily allowing additions or modifications to perform addedtasks. Subroutines have been utilized extensively, to facilitatesuch changes.

Entry of Patient Demographic InformationThe demographic (D) file in CLIS is essentially a hospital-

admission system in abbreviated form. Enhancement of thispart of the CLIS system could give rise to an independenthospital-admission system, which could be readily linked toCLIS. If a different computer system is used for patient entry,linking it to CLIS in some appropriate manner would save asecond manual entry of patient demographic information.Alternatively, preparation of a keypunched card for eachpatient would allow the laboratory to enter a patient into thesystem at will, simply by reading that card. A particular ad-vantage of this latter system would be with outpatients whocame repeatedly but sporadically.

When patient demographic data, sample requests, or resultsare entered into the CLIS system, the information is quicklystored on disks. Electrical failure would not affect these databut could jeopardize information just entered but not yetstored. Because the original data, e.g., strip charts and worksheets, would still be available, the laboratory would be in-convenienced by the need for a restart and re-entry of interimdata, but no data would be permanently lost. Tape backup forall data entry operations would be highly desirable, particu-larly if there were a disk head crash, but was not economicallyfeasible for the present generation of CLIS.

Cumulative Records for Entire Stay of Patients inHospital

The CLIS system was designed to optimize the microcom-puter’s capabilities, providing an efficient, inexpensive Systemoperating over a one-day time span. A second microcompu-ter-based system could be added as a module of CLIS, to takeresults on each patient and cumulate them. Microcomputersare most efficient when operating as self-standing parts of alarger system.

Response TimeAcceptance of any entered data is so fast that the operator

has no wait time for the next operation. Finding a patient maymean examining several possible matches but when the initialinformation is scanty, the chances are better because thesearch field can be broadened.

Laboratories CoveredCLIS was built and tested in a clinical chemistry laboratory

but was designed to be applicable to any laboratory. In itspresent form it does not allow free text entry. Preformedphrases such as would be appropriate for microbiology caneasily be programmed as an alternative data entry format.Avoiding free text entry, if this is possible, greatly simplifiesretrospective searching for particular items and would not beadded to CLIS if it could be avoided.

Staff AcceptanceOn demonstration of the system, the laboratory staff was

highly pleased and saw great advantages. A change in hospitaladministrative direction precluded actual implementationof the CLIS system.

ConclusionThis paper shows that a fast and versatile laboratory in-

formation system can be built around a relatively inexpensive8-bit microcomputer. To achieve success, we carefully re-viewed the characteristics of the computer and of the labo-ratory and its personnel. Direct file entry without searching,storage of data in hexadecimal form, use of assembler lan-guage, and data entry through interrupts minimized computerstorage requirements and response time. Tasks that could beeasily performed by technologists were not computerized,leaving the laboratory staff with the feeling that it was stillrunning the laboratory and relegating to the computer onlythose tasks at which it excelled. Such a minimal system shouldbe affordable by even a small laboratory, and can be aug-mented as conditions allow or dictate.

AppendixHardware and Software

The entire system is 8-bit, Z-80, S-100 based (Cromemco),presently with 64K bytes of core memory and with two minidisks (90K each) and two maxi disks (250K each). Printers are

Decwriters II and III and CRT’s are Lear-Siegler ADM-3A

Page 4: AClinical Laboratory InformationSystem … · ManuaL Pa.t.Les.taepon.t.6 LabLog ... laboratory already hadanefficient manual systemforgen- ... FileStructure Memory

CLINICAL CHEMISTRY, Vol. 27, No. 5, 1981 707

(“dumb terminals”). All programs are written in Cromemcoassembler language and utilize various parts of the disk op-erating systems (RDOS and CDOS).

I chose to write CLIS in Z-80 assembler language, eventhough a high-level language such as BASIC or FORTRAN

would have simplified the programming and made the soft-ware more portable. My reasons were to: (1) save memoryspace so that large buffers could be available within the di-rectly-addressable 64K memory; (2) speed up execution timethrough use of low level, compiled language; (3) shorten diskaccess time by utilizing calculation rather than file search; and(4) allow data entry by interrupt, without apparent delay inother ongoing computer operations. My writing in assemblerlanguage was facilitated by extensive use of subroutines, manyof which were stored separately in a disk file library. If theprograms had been written in BASIC, the Radio Shack TRS-80or Apple computer would have been cheaper, but I wanted tobuild a system that could be expanded to include additionalmicrocomputers. For example, several separate laboratoriescould have computer systems interacting with the commondata base of CLIS. Cumulative patient records could be gen-erated in a microcomputer system fed by the daily activitiesof the present CLIS system.

File Structure and Data HandlingAcceptable samples on a day are given a six digit number,

the first two digits being day of the month and the last fourbeing a sequence number starting at 0001. Three letters of thepatient’s last name are also appended to the sample number,to guard against transcription errors. All information relatingto that sample such as type of sample, tests requested, andresults are entered at the CRT console and stored in the R file(see Table 1) in the disk record block corresponding to thesequence number of that sample. This filing plan allows directaccess to any sample without searching for a file.

Demographic information on each patient with samples inthe R file is stored on a record block in the D file. Entries tothe D file start at record block 1 on a maxi floppy disk, mayhave up to 128 characters, and are limited to 2002 patients.The order of patient records in the D file is chronological,according to sequence of entry of the patient into the infor-mation system. Whenever a patient is entered into the D file,an entry is made, in the same order, into the P file in CPUmemory. This P file entry consists of the present seven-digithospital patient identification number and first three lettersof the last name. A longer number, such as a nine-digit socialsecurity number, would require only minor programchanges.

The demographic information on any patient may bequickly retrieved by searching the P file according to patientnumber or the three letters of the last name, and reading fromthe D file the corresponding record block.

The preferred form of patient identification for a patientis the seven digit number plus three letters of the last name.These three letters provide a system that not only checks

against mistranscription of the digits of the number but alsoallows patients to be found by their name. For example, asearch under the three letters, SM!, will probably retrieveseveral patients. When each demographic information recordis displayed, the operator must decide if that record belongsto the patient in question. In the absence of a unique patientidentification number, the patient match might be accom-plished through a variety of descriptors such as age, sex, orhospital location.

When a sample is entered into the information system, theP file is searched for existence of that patient. If not found,a D and P entry must be made. The sample request is thenentered into the R file and the sample number is appendedto the patient’s demographic information in the D file. Wheninformation on a patient’s laboratory record is needed, thepatient is found in the P file, and his demographic record isretrieved from the D file. Because this record contains thenumbers of his samples, those sample records can be directlyretrieved from the R file.

The T file is a list in memory of all tests offered by thelaboratory, along with pertinent information on each test. Forexample, serum glucose might be test 25 in the sequence, withthe mnemonic GLC, expressed in units of mg/dL, having thereference values of 60-110, and written with no decimal point.The T file sequence number, rather than the test name ormnemonic, is used in entering test requests and results.

Any result to be entered into the system must have associ-ated with it the sample number and the T file sequencenumber. These data allow the result to enter the R file directlywithout any intervention of the D file because the samplenumber will indicate where the record will be found and theT file sequence number (e.g., 25 for glucose) will indicate atwhich requested test the result should be entered.

A test result may have a letter preceding it to indicatesample condition (e.g., H-hemolyzed, 1-icteric, L-lipemic). Ifthis condition will affect accuracy of the test result, this letteris added to the test result on printout of the patient’s results.If not, the entering result will be compared with the referencevalues for the test and the printed test results will be flaggedas A (above) or B (below) the reference values.

At the end of the laboratory day, final patient reports andthe laboratory log are printed and then the files are recon-figured for the following day. After the U file is purged ofsamples completed, any samples with uncompleted tests inthe R file are transferred to the U file. An index to the U file,called the V file, is created in memory. From this is printeda list of samples to be saved. The record of each patient in theD file is examined to see if any of his samples remain in the Vfile. If so, his record, updated to include only uncompletedsamples, is transferred to the new D file.

To start the system for the next day, the CLIS program isread in, the new date is entered, and the newly built D and Ufile disks from the previous day mounted. The P and V filesare then reconstructed from the D and U files. The R file diskstarts empty each new day.

Table 1. Summary of CLIS

Floppy dIsk

File StructureMemory

FIle DataFile Disk size Data

D Maxi Patient demographic P Index to D file

R Maxi Today’s requests/results V Index to U file

U Mini Uncompleted R recordsfrom previous days

T Test description (e.g.,mnemonic, decimalposition, referencevalues, interference)

Page 5: AClinical Laboratory InformationSystem … · ManuaL Pa.t.Les.taepon.t.6 LabLog ... laboratory already hadanefficient manual systemforgen- ... FileStructure Memory

708 CLINICAL CHEMISTRY, Vol. 27, No. 5, 1981

Result EntryResults from the Technicon SMA 6 + 12 are calculated,

displayed, accepted, or edited, and transmitted under inter-rupt service from a Z-80 system custom-built by Edmac As-sociates, Inc., 333 W. Commercial St., East Rochester, NY14445, and similar to their MPI-4000 Microprocessor.

The SMA 6+12 results on a sample are displayed on a CRTscreen, for possible editing. The operator must accept therecord within one minute (or it will be lost). This procedureplaces full responsibility for sample identification and resultson the medical technologist who is operating the Techniconunits. Upon acceptance, the SMA microcomputer systemsends an STX (start transmission) character to the CPU,which is operating in interrupt mode. An ACK (acknowledge)is sent back by the CPU, and the entire edited sample recordis transmitted at 19.2K baud rate. If the checksum is correct,a second ACK terminates the operation, otherwise a NACK(negative acknowledge) requests retransmission.

Manual results are entered at a CRT attached to anotherZ-80 microcomputer, which transmits on a protocol similarto that described above for the SMA data. Again, the medicaltechnologist assumes full responsibility for sample identifi-cation and results.

Result StorageThe six-digit sample identification number that was gen-

erated when the sample was entered into the CLIS system later

becomes a 10-character string. Three letters of the last nameare automatically suffixed and a letter (e.g., H-hemolyzed,I-icteric, L-lipemic) is prefixed if appropriate, otherwise thefirst character in the string is left blank. The sample-conditionprefix is added as soon as a technician handles the sample aftercentrifugation and notices this condition of the sample. Thesuffixed letters are used as check characters when results areentered into the data base. Upon acceptance of the 10-char-acter string, the first seven ASCII characters are stored asthree hexidecimal bytes, the latter two representing the se-quential number. The last five bits of the first byte code, theday of the month, and the first three bits are used for thesample condition flags (H, I, L) when present. The three let-ters of the patient’s last name are only used as check charac-ters and are then discarded.

Upon receipt of test number, sample number, and results,the CPU reads the appropriate record block from the R file(if “today’s” sample) and inserts the result. If not “today’s”

sample, the V file (index to the U file) is searched and thecorresponding record block read from the U file.

Each test result comes in as an ASCII string of not more

than four digits including a decimal, e.g., 9999,99.9,9.99, .999.Any alphameric prefix such as sample state-e.g., H, I, L-isremoved and stored and the string is converted to floatingpoint notation. For manually entered results, the position ofthe decimal point is compared to that defined in an abbre-viated version of the T file and, if improper, the operator isinstructed to re-enter correctly. The ASCII string is convertedto hexadecimal notation and stored in the lower 12 bits of twobytes. Since precision is limited to 12 bits, any values above4096 are stored as a flag condition. The top four bits of the twobytes are used for flags. Storage of test results in floating pointformat saves storage space and allows easy arithmetic com-parison of values such as for assignment of “above” (A) and“below” (B) reference flags. Of course, input and output ofresults involve interconversion of ASCII and binary formateddata, but this is so rapid in the CLIS system that the operatoris unaware of the extra operations.

If an incoming test result is flagged for condition (H, I, L),the proper T file entry is searched to see if this condition a!-fects results. If so, the flag is stored, and restored on displayor printing. If not, the result is compared with reference valuesin the T file and the A or B flag stored if appropriate. Otherpossible flags indicate: out of control or technically unac-ceptable results; limits not applicable or needing interpreta-tion; alphameric results; or results pending.

Result PrintoutAfter getting the demographic data and thence the sample

data, each test sequence number is converted to its mnemonicprinted name by searching the test (T) table. The 16-bit resultis stripped of its 4-bit flag and the remainder floating pointvalue converted to ASCII characters. Printed decimal pointlocation and flag character are derived from the T table.

Expanding File Capacity

This could be markedly enhanced by substituting for thepresent four floppy disk system a Cromemco Z2-H systemwith two mini floppy disks and an 11 megabyte Winchesterhard disk. In that configuration, the D and R files could bemuch larger than at present.

Full ProgramsThe assembler language programs are quite long and of

immediate value only to owners of similar hardware, but in-quiries are welcomed.

I am grateful to John M. Bartley for his invaluable assistance in theediting and debugging of the CLIS programs.