CODE |
Input |
This is a code of a classification system that is
stored in the Lexicon. Classification systems include SNOMED CT, ICD, CPT,
HCPCS, etc.
|
SRC |
Input |
This is the mnemonic for a code system (mandatory).
The allowable code system mnemonics are those that exist in the "B" index of
the coding systems file (757.03) This is code system source abbreviation
Lexicon.
|
VDT |
Input |
This is the effective date; the default if no date is
specified is the current system date (optional).
|
ARRAY |
Both |
This is the name of the output array. The default, if
no array name is specified, is 'LEX' (optional) The format of the output is as
follows:
Output
if call finds an active code for the source
"1^LEXCODE"
LEX - an array containing information about the code
LEX(0) - a five piece string:
1. code
2. hierarchy
3. version
4. legacy code
5. code status
LEX("F") fully specified name
LEX("P") preferred term
LEX("S",n) synonyms (n is the nth synonym)
if call cannot find specified code on file
"-2^"_LEXSCNM_" code "_LEXCODE_" not on file"
where LEXSCNM is the source name
LEXCODE is the code
if call finds an inactive code for the source
"-4^"_LEXSCNM_" code "_LEXCODE_" not active for "_LEXVDT
LEX - an array containing information about the code
LEX(0) - a five piece string:
1. code
2. hierarchy
3. version
4. legacy code
5. code status
otherwise
"-1^error text"
example of LEX array:
LEX(0)="67922002^Substance^20050701^T-C2500^1"
LEX("F")="Serum (Substance)"
LEX("P")="Serum"
|
IENS |
Input |
Include expression IENs in output array (optional)
1 return IENS (2nd piece)
0 do not return IENS (default)
|
ID |
Input |
Designation Identifiers (optional)
1 return Designation IDs (3rd piece)
0 do not return Designation IDs (default)
|
INC |
Input |
Include Deactivated Terms (optional)
1 return Deactivated Terms
0 do not return Deactivated Terms (default)
|