eHealth Infrastructure (v2019.5)

evaluate

OPERATION: evaluate

The official URL for this operation definition is:

http://ehealth.sundhed.dk/fhir/OperationDefinition/Library-i-evaluate

This operation evaluates parameters passed as input against the decision support rule identified by the ehealth-library resource. It returns the computed clinical decision support result and/or errors. The operation is applicable for an ehealth-library resource with type=logic-library (see HL7 FHIR Library.type). Such a resource identifies a decision support rule and defines its parameters.

The operation is idempotent.

Parameter description

  • 1..1 Parameters: HL7 FHIR Parameters resource containing input parameters for the clinical decision support computation. See ehealth-library.parameters for required parameters.

Example:

{
  'resourceType': 'Parameters',
  'parameter': [
    {
      'name': 'parameters',
      'resource': {
        'resourceType': 'Parameters',
        'parameter': [
          {
            'name': 'isWarm',
            'valueBoolean': true
          }
        ]
      }
    }
  ]
}

Output description

Upon success this operation returns an ehealth-guidanceresponse resource containing the decision support result.

Extract of example output:

{
  'resourceType': 'Parameters',
  'parameter': [
    {
      'name': 'return',
      'resource': {
        'resourceType': 'GuidanceResponse',
        ... ,
        'contained': [
          {
            'resourceType': 'Parameters',
            'id': 'outputParameters1',
            'parameter': [
              {
                'name': 'situation-quality',
                'valueCodeableConcept': {
                  'coding': [
                    {
                      'system': 'http://ehealth.sundhed.dk/cs/situation-quality',
                      'code': 'SQ2',
                      'display': 'Situation quality 2'
                    }
                  ]
                }
              ]
            }
          ],
          ... ,
          'outputParameters': {
          'reference': '#outputParameters1'
          }
        ]
      }
    }
  ]
}

URL: [base]/Library/[id]/$evaluate

Parameters

UseNameCardinalityTypeBindingDocumentation
INparameters1..1Parameters
OUTreturn0..1GuidanceResponse