CODE OPTIONS
This OPTIONS format is to be used in the following places:
- As an OPTION property in a FORM TEMPLATE OBJECT ITEM of type CODE
- As an PARAMETER in the GET_LIST (SCOPE, PROPERTY{, PARAMETER, OPTIONS}) formula
CODE OPTIONS PROPERTY FORMAT
The CODE OPTIONS syntax is a slightly modified version of CSS selector syntax http://www.w3.org/TR/2011/REC-CSS2-20110607/#minitoc
FORMAT | EXAMPLE | RESULT | |
---|---|---|---|
CODE_CAT | Will show all entries in the CODES table with the specified CODE_CAT in the current session language | ICD9 | All ICD9 codes |
CODE_CAT:root | Will show only root codes of type CODE_CAT | ICD9:root | ICD9 root codes |
CODE_CAT[id=ID] > CODE_CAT2 | Will show entries in the CODES table with the specified CODE_CAT2 and child of value of CODE_CAT | ICD9[id=11] > ICD9 | All ICD9 children of ICD9="11" |
ICD9[id=$1] > * | All children of ICD9=$1 | ||
MDC[id=RESP] > ICD9 | ICD9 children of MDC="RESP" | ||
MDC[id=$1] > ICD9 | ICD9 child of MDC=$1 | ||
[PARENT] =CODE_CAT[id=ID] [CHILDREN] = CODE_CAT{:root} [PARENT] {AND|OR PARENT {...}} > [CHILDREN{:root}] {UNION [PARENT] {AND|OR PARENT {...}} > [CHILDREN]{:root}} | Will show all children of a logic combination of parents. The UNION connector allow various conditions to be applied The :root option means "only root values" in the selected CODE_CAT | MDC[id=RESP] > ICD9:root | ICD9 root codes which are children of MDC=RESP |
MDC[id=RESP] AND ICD9[id=11] > ICD9 | ICD9 children of MDC="RESP" and ICD9= "11" | ||
MDC[id=RESP] AND ICD9[id=11] > ICD9 UNION MDC[id=RESP] > ICD10:root | ICD9 children of MDC = "RESP" and ICD9="11" plus ICD10 roots child of MDC=RESP" | ||
MDC[id=RESP] AND ICD9#11 > ICD9:root UNION MDC[id=RESP] AND ICD9#12> ICD10:root | ICD9 root child of MDC = "RESP" and ICDP="11" plus ICD10 root child of MDC = "RESP" and ICDP="12" | ||
MDC[id=RESP] OR MDC[id=CARD] > ICD9:root UNION MDC[id=RESP]OR MDC[id=DIG]> ICD10:root | ICD9 roots child of MDC = "RESP" or MDC = "CARD" plus ICD10 roots child of MDC = "RESP" or MDC = "DIG" plus and ICD10 | ||
[CHILDREN] =CODE_CAT[id=ID] [PARENT] = CODE_CAT{:root} [CHILDREN] {AND|OR CHILDREN {...}} < [PARENT{:root}] {UNION [CHILDREN] {AND|OR CHILDREN {...}} < [PARENT]{:root}} | Will show all parents of a logic combination of children. The UNION connector allow various conditions to be applied The :root option means "only root values" in the selected CODE_CAT | ICD9[id=11]< MDC:root | MCD parent of ICD9 = "11" |
ICD9[id=11] OR ICD9[id=12] < MDC:root ICD9[id=11] < MDC:root UNION ICD9[id=12] < MDC:root | MDC root parents of ICD9="11" OR "ICD9="12" | ||
ICD9[id=12] AND ICD9[id=12] < MDC:root | MDC root parents of ICD9="11" and ICD9="12" |