code_search (session, code_system, search_text {, form})
Is a function to get a list of codes in the current session’s active language from the CODES table | |
Input parameters: | session: is the session id obtained in the session_init () call code_system: is the standard codification as described in the CODE OBJECTS (i.e. "FAV" for Favourites, “MDC” for Main Diagnose Codes, "ICD9", "PRG" for Programs, "TSK" *, etc. By default “ALL”, “STGS” for stages). The parameter may include some CODE OPTIONS search_text: is the phrase that is searched to get the matching results in the code table. form: This is a form_id value to retrieve dynamic information from a FORM item to build the CODE OPTION. This parameter is only required if the code_system parameter refers to a dynamic value in a form |
Output parameters: | result: is an XML that contains the mdc code list codes type: is the mdc_id standard code: is the short-name of the code description: is the full-name of the code ErrorMsg: any fault in the call, either in the validation of input parameters, errors in the connection to the database or any other error, this parameter returns the error message produced |
Request sample: | code_search ( “LCAAAAAAAAAAAAAAAAAAAAAAAA”, " MDC", "1234.23"); |
Response sample: | <?xml version="1.0" encoding="utf-8" standalone="yes"?> <result> <codes> <type>ICD9</type> <list> <file> <system>SYSTEM</system> <code>2016</code> <description>Bronquitis cronica</description> </file> …. </list> </codes>
</result> <ErrorMsg></ErrorMsg> |
Notes: |
|