FHIR © HL7.org  |  Server Home  |  FHIR Server FHIR Server 3.4.11  |  FHIR Version n/a  User: [n/a]

Resource TestScript/FHIR Server from package hl7.eu.fhir.flute#current (62 ms)

Package hl7.eu.fhir.flute
Type TestScript
Id Id
FHIR Version R4
Source http://hl7.eu/fhir/ig/flute/https://build.fhir.org/ig/hl7-eu/flute/TestScript-TS-Flute-05.html
Url http://hl7.eu/fhir/ig/flute/TestScript/TS-Flute-05
Version 0.1.0
Status draft
Date 2024-06-12
Name TestScriptResearchVariables2Extract
Title This TestScript is designed to validate the cql library ResearchVariables2
Experimental True
Realm eu
Authority hl7
Description This TestScript is designed to validate the cql library ResearchVariables2 with an extract of a questionnaire response
Purpose This TestScript is designed to validate the cql library ResearchVariables2 with an extract of a questionnaire response

Resources that use this resource

No resources found


Resources that this resource uses

No resources found



Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: TestScript

ResourceTestScript "TS-Flute-05"

url: http://hl7.eu/fhir/ig/flute/TestScript/TS-Flute-05

version: 0.1.0

name: TestScriptResearchVariables2Extract

title: This TestScript is designed to validate the cql library ResearchVariables2

status: draft

experimental: true

date: 2024-06-12

publisher: Flute Project

contact: Flute Project: https://www.fluteproject.eu/, Flute Project: https://www.fluteproject.eu/

description: This TestScript is designed to validate the cql library ResearchVariables2 with an extract of a questionnaire response

purpose: This TestScript is designed to validate the cql library ResearchVariables2 with an extract of a questionnaire response

Origins

-IndexProfile
*1FHIR Client (Details: Test script profile origin type code FHIR-Client = ' FHIR Client ', stated as ' null ')

Destinations

-IndexProfile
*1FHIR Server (Details: Test script profile destination type code FHIR-Server = ' FHIR Server ', stated as ' null ')

fixture

id

fixture-paramsBundle-create

autocreate: false

autodelete: false

resource: DocumentReference/EXP-Params-BundleExtract

fixture

id

fixture-library-create

autocreate: false

autodelete: false

resource: DocumentReference/ResearchVariables2

setup

action

operation

id

SET-01

type: update (Details: FHIR Restful Interactions code update = ' update ', stated as ' null ')

resource: Library

description: Create the Library resource on the test server using the id from fixture-library-create.

accept: application/fhir+json

contentType: application/fhir+json

encodeRequestUrl: false

method: put

sourceId: fixture-library-create

action

assert

id

SET-01-ASS-01

label: HTTPStatus

description: Confirm that the returned HTTP status is 201.

direction: response

responseCode: 201

warningOnly: false

test

id

1-EvaluateLibrary

name: Evaluation of CQL Library for Research Variables 2

description: This test evaluates the research variables defined in the CQL library for a prostate cancer study.

action

operation

id

TES-01

type: operation (Details: FHIR Restful Interactions code operation = ' operation ', stated as ' null ')

resource: Library

description: Evaluate the CQL library to retrieve research variables.

contentType: application/fhir+json

encodeRequestUrl: false

method: post

params: $evaluate

sourceId: fixture-paramsBundle-create

targetId: fixture-library-create

action

assert

id

TES-01-ASS-01

label: HTTPStatus

description: Confirm that the returned HTTP status is 200.

direction: response

responseCode: 200

warningOnly: false

action

assert

id

TES-01-ASS-02

label: Resource

description: Confirm that the returned resource type is Parameters.

direction: response

resource: Parameters

warningOnly: false

action

assert

id

TES-01-ASS-03

label: FHIRPath

description: Confirm that the returned Parameters resource contains an 'dre' parameter with a value of 1.

direction: response

expression: Parameters.parameter.where(name = 'dre' ).value=1

warningOnly: false

action

assert

id

TES-01-ASS-04

label: FHIRPath

description: Confirm that the returned Parameters resource contains an 'pcaFamilyHistory' parameter with a value of 0.

direction: response

expression: Parameters.parameter.where(name = 'pcaFamilyHistory' ).value=0

warningOnly: false

action

assert

id

TES-01-ASS-05

label: FHIRPath

description: Confirm that the returned Parameters resource contains an 'pirads' parameter with a value of 3.

direction: response

expression: Parameters.parameter.where(name = 'pirads' ).value=3

warningOnly: false

action

assert

id

TES-01-ASS-06

label: FHIRPath

description: Confirm that the returned Parameters resource contains an 'prostateVolume' parameter with a value of 30.

direction: response

expression: Parameters.parameter.where(name = 'prostateVolume' ).value.value=30

warningOnly: false

action

assert

id

TES-01-ASS-07

label: FHIRPath

description: Confirm that the returned Parameters resource contains an 'psa' parameter with a value of 5.

direction: response

expression: Parameters.parameter.where(name = 'psa' ).value.value=5

warningOnly: false

action

assert

id

TES-01-ASS-08

label: FHIRPath

description: Confirm that the returned Parameters resource contains an 'typeOfBiopsy' parameter with a value of 2.

direction: response

expression: Parameters.parameter.where(name = 'typeOfBiopsy' ).value=2

warningOnly: false

teardown

action

operation

id

TED-01

type: delete (Details: FHIR Restful Interactions code delete = ' delete ', stated as ' null ')

resource: Library

description: Delete the Library resource on the test server using the id from fixture-library-create.

encodeRequestUrl: true

method: delete

targetId: fixture-library-create


Source

{
  "resourceType" : "TestScript",
  "id" : "TS-Flute-05",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: TestScript </b><a name=\"TS-Flute-05\"> </a><a name=\"hcTS-Flute-05\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">ResourceTestScript &quot;TS-Flute-05&quot; </p></div><p><b>url</b>: <code>http://hl7.eu/fhir/ig/flute/TestScript/TS-Flute-05</code></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: TestScriptResearchVariables2Extract</p><p><b>title</b>: This TestScript is designed to validate the cql library ResearchVariables2</p><p><b>status</b>: draft</p><p><b>experimental</b>: true</p><p><b>date</b>: 2024-06-12</p><p><b>publisher</b>: Flute Project</p><p><b>contact</b>: Flute Project: <a href=\"https://www.fluteproject.eu/\">https://www.fluteproject.eu/</a>, Flute Project: <a href=\"https://www.fluteproject.eu/\">https://www.fluteproject.eu/</a></p><p><b>description</b>: This TestScript is designed to validate the cql library ResearchVariables2 with an extract of a questionnaire response</p><p><b>purpose</b>: This TestScript is designed to validate the cql library ResearchVariables2 with an extract of a questionnaire response</p><h3>Origins</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Index</b></td><td><b>Profile</b></td></tr><tr><td style=\"display: none\">*</td><td>1</td><td>FHIR Client (Details: Test script profile origin type code FHIR-Client = ' FHIR Client ', stated as ' null ')</td></tr></table><h3>Destinations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Index</b></td><td><b>Profile</b></td></tr><tr><td style=\"display: none\">*</td><td>1</td><td>FHIR Server (Details: Test script profile destination type code FHIR-Server = ' FHIR Server ', stated as ' null ')</td></tr></table><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>fixture-paramsBundle-create</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <a href=\"DocumentReference/EXP-Params-BundleExtract\">DocumentReference/EXP-Params-BundleExtract</a></p></blockquote><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>fixture-library-create</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <a href=\"DocumentReference/ResearchVariables2\">DocumentReference/ResearchVariables2</a></p></blockquote><blockquote><p><b>setup</b></p><blockquote><p><b>action</b></p><blockquote><p><b>operation</b></p><blockquote><p><b>id</b></p>SET-01</blockquote><p><b>type</b>: update (Details: FHIR Restful Interactions code update = ' update ', stated as ' null ')</p><p><b>resource</b>: Library</p><p><b>description</b>: Create the Library resource on the test server using the id from fixture-library-create.</p><p><b>accept</b>: application/fhir+json</p><p><b>contentType</b>: application/fhir+json</p><p><b>encodeRequestUrl</b>: false</p><p><b>method</b>: put</p><p><b>sourceId</b>: fixture-library-create</p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p><blockquote><p><b>id</b></p>SET-01-ASS-01</blockquote><p><b>label</b>: HTTPStatus</p><p><b>description</b>: Confirm that the returned HTTP status is 201.</p><p><b>direction</b>: response</p><p><b>responseCode</b>: 201</p><p><b>warningOnly</b>: false</p></blockquote></blockquote></blockquote><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>1-EvaluateLibrary</blockquote><p><b>name</b>: Evaluation of CQL Library for Research Variables 2</p><p><b>description</b>: This test evaluates the research variables defined in the CQL library for a prostate cancer study.</p><blockquote><p><b>action</b></p><blockquote><p><b>operation</b></p><blockquote><p><b>id</b></p>TES-01</blockquote><p><b>type</b>: operation (Details: FHIR Restful Interactions code operation = ' operation ', stated as ' null ')</p><p><b>resource</b>: Library</p><p><b>description</b>: Evaluate the CQL library to retrieve research variables.</p><p><b>contentType</b>: application/fhir+json</p><p><b>encodeRequestUrl</b>: false</p><p><b>method</b>: post</p><p><b>params</b>: $evaluate</p><p><b>sourceId</b>: fixture-paramsBundle-create</p><p><b>targetId</b>: fixture-library-create</p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p><blockquote><p><b>id</b></p>TES-01-ASS-01</blockquote><p><b>label</b>: HTTPStatus</p><p><b>description</b>: Confirm that the returned HTTP status is 200.</p><p><b>direction</b>: response</p><p><b>responseCode</b>: 200</p><p><b>warningOnly</b>: false</p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p><blockquote><p><b>id</b></p>TES-01-ASS-02</blockquote><p><b>label</b>: Resource</p><p><b>description</b>: Confirm that the returned resource type is Parameters.</p><p><b>direction</b>: response</p><p><b>resource</b>: Parameters</p><p><b>warningOnly</b>: false</p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p><blockquote><p><b>id</b></p>TES-01-ASS-03</blockquote><p><b>label</b>: FHIRPath</p><p><b>description</b>: Confirm that the returned Parameters resource contains an 'dre' parameter with a value of 1.</p><p><b>direction</b>: response</p><p><b>expression</b>: Parameters.parameter.where(name = 'dre' ).value=1</p><p><b>warningOnly</b>: false</p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p><blockquote><p><b>id</b></p>TES-01-ASS-04</blockquote><p><b>label</b>: FHIRPath</p><p><b>description</b>: Confirm that the returned Parameters resource contains an 'pcaFamilyHistory' parameter with a value of 0.</p><p><b>direction</b>: response</p><p><b>expression</b>: Parameters.parameter.where(name = 'pcaFamilyHistory' ).value=0</p><p><b>warningOnly</b>: false</p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p><blockquote><p><b>id</b></p>TES-01-ASS-05</blockquote><p><b>label</b>: FHIRPath</p><p><b>description</b>: Confirm that the returned Parameters resource contains an 'pirads' parameter with a value of 3.</p><p><b>direction</b>: response</p><p><b>expression</b>: Parameters.parameter.where(name = 'pirads' ).value=3</p><p><b>warningOnly</b>: false</p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p><blockquote><p><b>id</b></p>TES-01-ASS-06</blockquote><p><b>label</b>: FHIRPath</p><p><b>description</b>: Confirm that the returned Parameters resource contains an 'prostateVolume' parameter with a value of 30.</p><p><b>direction</b>: response</p><p><b>expression</b>: Parameters.parameter.where(name = 'prostateVolume' ).value.value=30</p><p><b>warningOnly</b>: false</p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p><blockquote><p><b>id</b></p>TES-01-ASS-07</blockquote><p><b>label</b>: FHIRPath</p><p><b>description</b>: Confirm that the returned Parameters resource contains an 'psa' parameter with a value of 5.</p><p><b>direction</b>: response</p><p><b>expression</b>: Parameters.parameter.where(name = 'psa' ).value.value=5</p><p><b>warningOnly</b>: false</p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p><blockquote><p><b>id</b></p>TES-01-ASS-08</blockquote><p><b>label</b>: FHIRPath</p><p><b>description</b>: Confirm that the returned Parameters resource contains an 'typeOfBiopsy' parameter with a value of 2.</p><p><b>direction</b>: response</p><p><b>expression</b>: Parameters.parameter.where(name = 'typeOfBiopsy' ).value=2</p><p><b>warningOnly</b>: false</p></blockquote></blockquote></blockquote><blockquote><p><b>teardown</b></p><blockquote><p><b>action</b></p><blockquote><p><b>operation</b></p><blockquote><p><b>id</b></p>TED-01</blockquote><p><b>type</b>: delete (Details: FHIR Restful Interactions code delete = ' delete ', stated as ' null ')</p><p><b>resource</b>: Library</p><p><b>description</b>: Delete the Library resource on the test server using the id from fixture-library-create.</p><p><b>encodeRequestUrl</b>: true</p><p><b>method</b>: delete</p><p><b>targetId</b>: fixture-library-create</p></blockquote></blockquote></blockquote></div>"
  },
  "url" : "http://hl7.eu/fhir/ig/flute/TestScript/TS-Flute-05",
  "version" : "0.1.0",
  "name" : "TestScriptResearchVariables2Extract",
  "title" : "This TestScript is designed to validate the cql library ResearchVariables2",
  "status" : "draft",
  "experimental" : true,
  "date" : "2024-06-12",
  "publisher" : "Flute Project",
  "contact" : [
    {
      "name" : "Flute Project",
      "telecom" : [
        {
          "system" : "url",
          "value" : "https://www.fluteproject.eu/"
        }
      ]
    },
    {
      "name" : "Flute Project",
      "telecom" : [
        {
          "system" : "url",
          "value" : "https://www.fluteproject.eu/"
        }
      ]
    }
  ],
  "description" : "This TestScript is designed to validate the cql library ResearchVariables2 with an extract of a questionnaire response",
  "purpose" : "This TestScript is designed to validate the cql library ResearchVariables2 with an extract of a questionnaire response",
  "origin" : [
    {
      "index" : 1,
      "profile" : {
        "system" : "http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types",
        "code" : "FHIR-Client"
      }
    }
  ],
  "destination" : [
    {
      "index" : 1,
      "profile" : {
        "system" : "http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types",
        "code" : "FHIR-Server"
      }
    }
  ],
  "fixture" : [
    {
      "id" : "fixture-paramsBundle-create",
      "autocreate" : false,
      "autodelete" : false,
      "resource" : {
        "reference" : "DocumentReference/EXP-Params-BundleExtract"
      }
    },
    {
      "id" : "fixture-library-create",
      "autocreate" : false,
      "autodelete" : false,
      "resource" : {
        "reference" : "DocumentReference/ResearchVariables2"
      }
    }
  ],
  "setup" : {
    "action" : [
      {
        "operation" : {
          "id" : "SET-01",
          "type" : {
            "system" : "http://hl7.org/fhir/restful-interaction",
            "code" : "update"
          },
          "resource" : "Library",
          "description" : "Create the Library resource on the test server using the id from fixture-library-create.",
          "accept" : "application/fhir+json",
          "contentType" : "application/fhir+json",
          "encodeRequestUrl" : false,
          "method" : "put",
          "sourceId" : "fixture-library-create"
        }
      },
      {
        "assert" : {
          "id" : "SET-01-ASS-01",
          "label" : "HTTPStatus",
          "description" : "Confirm that the returned HTTP status is 201.",
          "direction" : "response",
          "responseCode" : "201",
          "warningOnly" : false
        }
      }
    ]
  },
  "test" : [
    {
      "id" : "1-EvaluateLibrary",
      "name" : "Evaluation of CQL Library for Research Variables 2",
      "description" : "This test evaluates the research variables defined in the CQL library for a prostate cancer study.",
      "action" : [
        {
          "operation" : {
            "id" : "TES-01",
            "extension" : [
              {
                "url" : "http://fyrstain.com/pdt/returnResourceType",
                "valueString" : "Parameters"
              }
            ],
            "type" : {
              "system" : "http://hl7.org/fhir/restful-interaction",
              "code" : "operation"
            },
            "resource" : "Library",
            "description" : "Evaluate the CQL library to retrieve research variables.",
            "contentType" : "application/fhir+json",
            "encodeRequestUrl" : false,
            "method" : "post",
            "params" : "$evaluate",
            "sourceId" : "fixture-paramsBundle-create",
            "targetId" : "fixture-library-create"
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-01",
            "label" : "HTTPStatus",
            "description" : "Confirm that the returned HTTP status is 200.",
            "direction" : "response",
            "responseCode" : "200",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-02",
            "label" : "Resource",
            "description" : "Confirm that the returned resource type is Parameters.",
            "direction" : "response",
            "resource" : "Parameters",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-03",
            "label" : "FHIRPath",
            "description" : "Confirm that the returned Parameters resource contains an 'dre' parameter with a value of 1.",
            "direction" : "response",
            "expression" : "Parameters.parameter.where(name = 'dre' ).value=1",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-04",
            "label" : "FHIRPath",
            "description" : "Confirm that the returned Parameters resource contains an 'pcaFamilyHistory' parameter with a value of 0.",
            "direction" : "response",
            "expression" : "Parameters.parameter.where(name = 'pcaFamilyHistory' ).value=0",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-05",
            "label" : "FHIRPath",
            "description" : "Confirm that the returned Parameters resource contains an 'pirads' parameter with a value of 3.",
            "direction" : "response",
            "expression" : "Parameters.parameter.where(name = 'pirads' ).value=3",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-06",
            "label" : "FHIRPath",
            "description" : "Confirm that the returned Parameters resource contains an 'prostateVolume' parameter with a value of 30.",
            "direction" : "response",
            "expression" : "Parameters.parameter.where(name = 'prostateVolume' ).value.value=30",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-07",
            "label" : "FHIRPath",
            "description" : "Confirm that the returned Parameters resource contains an 'psa' parameter with a value of 5.",
            "direction" : "response",
            "expression" : "Parameters.parameter.where(name = 'psa' ).value.value=5",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-08",
            "label" : "FHIRPath",
            "description" : "Confirm that the returned Parameters resource contains an 'typeOfBiopsy' parameter with a value of 2.",
            "direction" : "response",
            "expression" : "Parameters.parameter.where(name = 'typeOfBiopsy' ).value=2",
            "warningOnly" : false
          }
        }
      ]
    }
  ],
  "teardown" : {
    "action" : [
      {
        "operation" : {
          "id" : "TED-01",
          "type" : {
            "system" : "http://hl7.org/fhir/restful-interaction",
            "code" : "delete"
          },
          "resource" : "Library",
          "description" : "Delete the Library resource on the test server using the id from fixture-library-create.",
          "encodeRequestUrl" : true,
          "method" : "delete",
          "targetId" : "fixture-library-create"
        }
      }
    ]
  }
}

XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.