MAGDHRC0 ;WOIFO/PMK - Read HL7 and generate DICOM ; 28 Mar 2011 10:30 AM
Source file <MAGDHRC0.m>
| Name | Comments | DBIA/ICR reference | 
|---|---|---|
| GETDATA(FLD,REP,CMP,SUB) | ; get an element from HL7PARSE
 | 
|
| DEQUOTE(X) | ; convert HL7 double quote data (that is, "") to empty string
 | 
|
| GETEXIST(FLD,REP,CMP,SUB) | ; does the element (segment/field/rep/comp) exist
 | 
|
| GETSEG(SEGMENT) | ; check if the named segment exists
 | 
|
| GETCOUNT() | ; get highest index number from HL7PARSE
 | 
|
| GETNAME(J,K) | ; get a person's name - return in DICOM format
 ; also used for provider's name - first piece is code - others shifted  |