| $$STATCHK(CODE,CDT) | 
This API returns the status, IEN and effective date
of a code.
 
 | 
| VARIABLES | 
TYPE | 
VARIABLES DESCRIPTION | 
 
CODE | 
Input | 
This is either an ICD-10 Diagnosis Code or an ICD-10
Procedure code (IEN not allowed) (Required)
 
 | 
CDT | 
Input | 
This is a date in FileMan format used to check if a
code is active or inactive on a specified date. (Optional, default is TODAY)
 
 | 
$$STATCHK | 
Output | 
3-Piece "^" delimited string, the following are
possible outputs:
1 ^ IEN ^ Effective Date       Active Code
0 ^ IEN ^ Effective Date       Inactive Code
0 ^ IEN ^ Message              Not Active
0 ^ -1  ^ Error Message        Error
 
 | 
 
 | 
$$NEXT(CODE) | 
Returns the Next ICD-10 Diagnosis/Procedure Code
(active or inactive).
 
 | 
| VARIABLES | 
TYPE | 
VARIABLES DESCRIPTION | 
 
CODE | 
Input | 
This is either an ICD-10 Diagnosis Code or an ICD-10
Procedure code (IEN not allowed) (Required)
 
 | 
$$NEXT | 
Output | 
This is the Next ICD-10 Code, Null if none
 
 | 
 
 | 
$$PREV(CODE) | 
Returns the Previous ICD-10 Diagnosis/Procedure Code
(active or inactive)
 
 | 
| VARIABLES | 
TYPE | 
VARIABLES DESCRIPTION | 
 
CODE | 
Input | 
This is either an ICD-10 Diagnosis Code or an ICD-10
Procedure code (IEN not allowed) (Required)
 
 | 
$$PREV | 
Output | 
This is the Previous ICD-10 Code, Null if none
 
 | 
 
 | 
$$HIST(CODE,.ARY) | 
Returns the activation history of an ICD-10 Code.
 
 | 
| VARIABLES | 
TYPE | 
VARIABLES DESCRIPTION | 
 
CODE | 
Input | 
This is either an ICD-10 Diagnosis Code or an ICD-10
Procedure code (IEN not allowed) (Required)
 
 | 
.ARY | 
Input | 
Local array name, passed by reference.  If passed the
codes activation history will be stored in this array by status and effective
date.  (Optional)
 
 | 
$$HIST | 
Output | 
The number of activation history entries are
returned, or -1 if an error occurs
 
 | 
ARY | 
Output | 
Local array containing the activation histories for a
given code:
ARY(0)      = # of Activation History Entries ARY(<date>) = status (1 = Active
0 = Inactive) ARY("IEN")  = <ien>
 | 
 
 | 
PERIOD(CODE,ARY) | 
Returns Activation/Inactivation Periods
 
 | 
| VARIABLES | 
TYPE | 
VARIABLES DESCRIPTION | 
 
CODE | 
Input | 
This is either an ICD-10 Diagnosis Code or an ICD-10
Procedure code (IEN not allowed) (Required)
 
 | 
.ARY | 
Input | 
Local array name, passed by reference.  The
activation periods will be stored in this array by date. (Required)
 
 | 
ARY | 
Output | 
Local array containing the activation periods for a
given code:
ARY(0) IEN ^ Short Description for TODAY
NOTE:  Future activations will not
have a short description
or
-1 if error
ARY(Activation Date) = 2 piece string
1  Inactivation Date
2  Short Name
Where the Short Name is versioned as
follows:
Period is active
Short Description for the date
the period became active
Period is inactive
Short Description for the date
the period became inactive
or -1^0 (no period or error)
 
 | 
 
 |