Class: VitalsMetaService

VitalsMetaService


new VitalsMetaService()

Service for Meta (non-clinical) queries relating to the Vitals domain.

Members


<constant> PARAMETER_FIELD_MAP

Get the Vitals type/category/qualifier hierarchy object based on vital type inputs

Example
vitalType: ['HT', 'WT']

result = {
 "urn:national:120_51:8": {
   "abbreviation": "HT",
   "pceAbbreviation": "HT",
   "label": "HEIGHT",
   "categoryMap": {
     "urn:national:120_53:4": {
       "category": "QUALITY",
       "qualifiers": [
         {
           "id": "urn:national:120_52:42",
           "qualifier": "ACTUAL",
           "synonym": "A"
         },
         {
           "id": "urn:national:120_52:43",
           "qualifier": "ESTIMATED",
           "synonym": "E"
         },
         {
           "id": "urn:national:120_52:132",
           "qualifier": "STATED",
           "synonym": "Sta"
         },
         {
           "id": "urn:national:120_52:140",
           "qualifier": "ESTIMATED BY ARM SPAN",
           "synonym": "EAS"
         }
       ]
     }
   }
 },
 "urn:national:120_51:9": {
   "abbreviation": "WT",
   "pceAbbreviation": "WT",
   "label": "WEIGHT",
   "categoryMap": {
     "urn:national:120_53:4": {
       "category": "QUALITY",
       "qualifiers": [
         {
           "id": "urn:national:120_52:42",
           "qualifier": "ACTUAL",
           "synonym": "A"
         },
         {
           "id": "urn:national:120_52:43",
           "qualifier": "ESTIMATED",
           "synonym": "E"
         },
         {
           "id": "urn:national:120_52:132",
           "qualifier": "STATED",
           "synonym": "Sta"
         },
         {
           "id": "urn:national:120_52:44",
           "qualifier": "DRY",
           "synonym": "D"
         },
         {
           "id": "urn:national:120_52:145",
           "qualifier": "CALCULATED",
           "synonym": "Cal"
         }
       ]
     },
     "urn:national:120_53:2": {
       "category": "METHOD",
       "qualifiers": [
         {
           "id": "urn:national:120_52:72",
           "qualifier": "CHAIR",
           "synonym": "Ch"
         },
         {
           "id": "urn:national:120_52:73",
           "qualifier": "BED",
           "synonym": "B"
         },
         {
           "id": "urn:national:120_52:123",
           "qualifier": "LIFT SCALE",
           "synonym": "LS"
         },
         {
           "id": "urn:national:120_52:131",
           "qualifier": "STANDING WEIGHT",
           "synonym": "SW"
         },
         {
           "id": "urn:national:120_52:136",
           "qualifier": "WHEELCHAIR SCALE",
           "synonym": "WcS"
         },
         {
           "id": "urn:national:120_52:137",
           "qualifier": "WITH CAST OR BRACE",
           "synonym": "WCB"
         },
         {
           "id": "urn:national:120_52:138",
           "qualifier": "WITH PROSTHESIS",
           "synonym": "WP"
         },
         {
           "id": "urn:national:120_52:139",
           "qualifier": "WITHOUT PROSTHESIS",
           "synonym": "WOP"
         }
       ]
     }
   }
 }
}

<constant> VT_CODE_LIST

Returns the GMRV Vital Type ID matching the parameter name

Methods


lookupVitalTypeID(vitalType, callback)

Returns the GMRV Vital Type ID matching the parameter name

Parameters:
Name Type Description
vitalType Array

First (and only) argument should be the name of an existing Vital Type

callback function

The function that will process results from lookupVitalTypeID

Returns:

Object containing the Vital Type name and ID, 0 if not found, -1 if input is empty string

Type
Object | number