DGPT EXPANDED CODE SORT ICD-10 (929)    SORT TEMPLATE (.401)

Name Value
NAME DGPT EXPANDED CODE SORT ICD-10
SORT FIELD DATA
  • FILE OR SUBFILE NO.:   45.89
    GET CODE:   S Y(1)=$S($D(^DIC(45.89,D0,0)):^(0),1:"") S X=$P($G(^ICDS(+$P(Y(1),U,5),0)),U) I D0>0 S DISX(1)=X
    QUERY CONDITION:   I (DISX(1)]]"ICD-10-CLz")&(DISX(1)']]"ICD-10-PCS")
    DESCRIPTION OF SORT:   ICD VERSION from ICD-10-CM to ICD-10-PCS
    DATA TYPE FOR SORTING:   FREE TEXT
    COMPUTED FIELD CODE:   S Y(1)=$S($D(^DIC(45.89,D0,0)):^(0),1:"") S X=$P($G(^ICDS(+$P(Y(1),U,5),0)),U) I D0>0 S DISX(1)=X
    FIELD NAME:   ICD VERSION
    SORT QUALIFIERS BEFORE FIELD:   @".05
    FROM VALUE INTERNAL:   ICD-10-CLz
    FROM VALUE EXTERNAL:   ICD-10-CM
    TO VALUE INTERNAL:   ICD-10-PCS
    TO VALUE EXTERNAL:   ICD-10-PCS
  • FILE OR SUBFILE NO.:   45.89
    GET CODE:   S Y(1)=$S($D(^DIC(45.89,D0,0)):^(0),1:"") S X=$P($G(^DIC(45.88,+$P(Y(1),U,1),0)),U) I D0>0 S DISX(2)=X
    QUERY CONDITION:   I DISX(2)'=""
    DESCRIPTION OF SORT:   CATEGORY not null
    SEARCH EFFICIENCY RATING:   0.0000
    PROBABILITY RATING:   0.0000
    DATA TYPE FOR SORTING:   FREE TEXT
    COMPUTED FIELD CODE:   S Y(1)=$S($D(^DIC(45.89,D0,0)):^(0),1:"") S X=$P($G(^DIC(45.88,+$P(Y(1),U,1),0)),U) I D0>0 S DISX(2)=X
    FIELD NAME:   CATEGORY
    SORT QUALIFIERS BEFORE FIELD:   @".01
    CROSS REFERENCE DATA:   ^DIC(45.89,"B",^DIC(45.89,^2
    POINT TO CROSS REFERENCE:   ^DIC(45.88,"B",
  • FILE OR SUBFILE NO.:   45.89
    GET CODE:   N DIERR S Y(1)=$S($D(^DIC(45.89,D0,0)):^(0),1:"") S X=$$EXTERNAL^DIDU(45.89,.02,"",$P(Y(1),U,2)) I D0>0 S DISX(3)=X
    QUERY CONDITION:   I DISX(3)'=""
    DESCRIPTION OF SORT:   DIAGNOSIS/PROCEDURE CODE not null
    DATA TYPE FOR SORTING:   FREE TEXT
    COMPUTED FIELD CODE:   N DIERR S Y(1)=$S($D(^DIC(45.89,D0,0)):^(0),1:"") S X=$$EXTERNAL^DIDU(45.89,.02,"",$P(Y(1),U,2)) I D0>0 S DISX(3)=X
    FIELD NAME:   DIAGNOSIS/PROCEDURE CODE
    SORT QUALIFIERS BEFORE FIELD:   ".02
DATE CREATED 2012-01-11 14:05:00
FILE File: 1, IEN: 45.89
DATE LAST USED 2013-05-17 00:00:00