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 (47 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-04.html
Url http://hl7.eu/fhir/ig/flute/TestScript/TS-Flute-04
Version 0.1.0
Status draft
Date 2024-05-31
Name TestScriptExtractQuestionnaireResponse
Title This TestScript is designed to validate the extract of a questionnaire response
Experimental True
Realm eu
Authority hl7
Description This TestScript is designed to validate the extract of a questionnaire response
Purpose This TestScript is designed to validate the 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-04"

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

version: 0.1.0

name: TestScriptExtractQuestionnaireResponse

title: This TestScript is designed to validate the extract of a questionnaire response

status: draft

experimental: true

date: 2024-05-31

publisher: Flute Project

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

description: This TestScript is designed to validate the extract of a questionnaire response

purpose: This TestScript is designed to validate the 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-patient-create

autocreate: false

autodelete: false

resource: Patient/EXP-S1-Patient " DUBOIS"

fixture

id

fixture-questionnaireResponse-create

autocreate: false

autodelete: false

resource: QuestionnaireResponse/Questionnaire-StudyVariable-S1

variable

id

Questionnaire-StudyVariable-S1

name: Questionnaire-StudyVariable-S1

defaultValue: Questionnaire-StudyVariable-S1

path: id

test

id

01-ExtractQuestionnaireResponse

name: Extract questionnaire response to FHIR

description: Extract questionnaire response to FHIR

action

operation

id

TES-01

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

resource: QuestionnaireResponse

description: Extract questionnaire response to FHIR

destination: 1

encodeRequestUrl: false

method: post

origin: 1

params: $extract

targetId: Questionnaire-StudyVariable-S1

action

assert

id

TES-01-ASS-01

label: HTTPStatus

description: Confirmer que le statut HTTP renvoyé est 200.

direction: response

responseCode: 200

warningOnly: false

action

assert

id

TES-01-ASS-02

label: Resource

description: Confirmer que le type de ressource renvoyé est Bundle.

direction: response

resource: Bundle

warningOnly: false

action

assert

id

TES-01-ASS-03

label: FHIRPath

description: Confirm that the returned Bundle contains the resource Procedure.

direction: response

expression: Bundle.entry[0].resource.is(Procedure)

warningOnly: false

action

assert

id

TES-01-ASS-04

label: FHIRPath

description: Confirm that the returned Bundle contains the resource FamilyMemberHistory.

direction: response

expression: Bundle.entry[1].resource.is(FamilyMemberHistory)

warningOnly: false

action

assert

id

TES-01-ASS-05

label: FHIRPath

description: Confirm that the returned Bundle contains the resource Observation.

direction: response

expression: Bundle.entry[2].resource.is(Observation)

warningOnly: false

action

assert

id

TES-01-ASS-06

label: FHIRPath

description: Confirm that the returned Bundle contains the resource Procedure.

direction: response

expression: Bundle.entry[3].resource.is(Procedure)

warningOnly: false

action

assert

id

TES-01-ASS-07

label: FHIRPath

description: Confirm that the returned Bundle contains the resource Observation.

direction: response

expression: Bundle.entry[4].resource.is(Observation)

warningOnly: false

action

assert

id

TES-01-ASS-08

label: FHIRPath

description: Confirm that the returned Bundle contains the resource Observation.

direction: response

expression: Bundle.entry[5].resource.is(Observation)

warningOnly: false

action

assert

id

TES-01-ASS-09

label: FHIRPath

description: Confirm that the returned Bundle contains 6 entries.

direction: response

expression: Bundle.entry.count() = 6

warningOnly: false


Source

{
  "resourceType" : "TestScript",
  "id" : "TS-Flute-04",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: TestScript </b><a name=\"TS-Flute-04\"> </a><a name=\"hcTS-Flute-04\"> </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-04&quot; </p></div><p><b>url</b>: <code>http://hl7.eu/fhir/ig/flute/TestScript/TS-Flute-04</code></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: TestScriptExtractQuestionnaireResponse</p><p><b>title</b>: This TestScript is designed to validate the extract of a questionnaire response</p><p><b>status</b>: draft</p><p><b>experimental</b>: true</p><p><b>date</b>: 2024-05-31</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 extract of a questionnaire response</p><p><b>purpose</b>: This TestScript is designed to validate the 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-patient-create</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <a href=\"Patient-EXP-S1-Patient.html\">Patient/EXP-S1-Patient</a> &quot; DUBOIS&quot;</p></blockquote><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>fixture-questionnaireResponse-create</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <a href=\"QuestionnaireResponse-Questionnaire-StudyVariable-S1.html\">QuestionnaireResponse/Questionnaire-StudyVariable-S1</a></p></blockquote><blockquote><p><b>variable</b></p><blockquote><p><b>id</b></p>Questionnaire-StudyVariable-S1</blockquote><p><b>name</b>: Questionnaire-StudyVariable-S1</p><p><b>defaultValue</b>: Questionnaire-StudyVariable-S1</p><p><b>path</b>: id</p></blockquote><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>01-ExtractQuestionnaireResponse</blockquote><p><b>name</b>: Extract questionnaire response to FHIR</p><p><b>description</b>: Extract questionnaire response to FHIR</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>: QuestionnaireResponse</p><p><b>description</b>: Extract questionnaire response to FHIR</p><p><b>destination</b>: 1</p><p><b>encodeRequestUrl</b>: false</p><p><b>method</b>: post</p><p><b>origin</b>: 1</p><p><b>params</b>: $extract</p><p><b>targetId</b>: Questionnaire-StudyVariable-S1</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>: Confirmer que le statut HTTP renvoyé est 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>: Confirmer que le type de ressource renvoyé est Bundle.</p><p><b>direction</b>: response</p><p><b>resource</b>: Bundle</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 Bundle contains the resource Procedure.</p><p><b>direction</b>: response</p><p><b>expression</b>: Bundle.entry[0].resource.is(Procedure)</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 Bundle contains the resource FamilyMemberHistory.</p><p><b>direction</b>: response</p><p><b>expression</b>: Bundle.entry[1].resource.is(FamilyMemberHistory)</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 Bundle contains the resource Observation.</p><p><b>direction</b>: response</p><p><b>expression</b>: Bundle.entry[2].resource.is(Observation)</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 Bundle contains the resource Procedure.</p><p><b>direction</b>: response</p><p><b>expression</b>: Bundle.entry[3].resource.is(Procedure)</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 Bundle contains the resource Observation.</p><p><b>direction</b>: response</p><p><b>expression</b>: Bundle.entry[4].resource.is(Observation)</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 Bundle contains the resource Observation.</p><p><b>direction</b>: response</p><p><b>expression</b>: Bundle.entry[5].resource.is(Observation)</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-09</blockquote><p><b>label</b>: FHIRPath</p><p><b>description</b>: Confirm that the returned Bundle contains 6 entries.</p><p><b>direction</b>: response</p><p><b>expression</b>: Bundle.entry.count() = 6</p><p><b>warningOnly</b>: false</p></blockquote></blockquote></blockquote></div>"
  },
  "url" : "http://hl7.eu/fhir/ig/flute/TestScript/TS-Flute-04",
  "version" : "0.1.0",
  "name" : "TestScriptExtractQuestionnaireResponse",
  "title" : "This TestScript is designed to validate the extract of a questionnaire response",
  "status" : "draft",
  "experimental" : true,
  "date" : "2024-05-31",
  "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 extract of a questionnaire response",
  "purpose" : "This TestScript is designed to validate the 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-patient-create",
      "autocreate" : false,
      "autodelete" : false,
      "resource" : {
        "reference" : "Patient/EXP-S1-Patient"
      }
    },
    {
      "id" : "fixture-questionnaireResponse-create",
      "autocreate" : false,
      "autodelete" : false,
      "resource" : {
        "reference" : "QuestionnaireResponse/Questionnaire-StudyVariable-S1"
      }
    }
  ],
  "variable" : [
    {
      "id" : "Questionnaire-StudyVariable-S1",
      "name" : "Questionnaire-StudyVariable-S1",
      "defaultValue" : "Questionnaire-StudyVariable-S1",
      "path" : "id"
    }
  ],
  "test" : [
    {
      "id" : "01-ExtractQuestionnaireResponse",
      "name" : "Extract questionnaire response to FHIR",
      "description" : "Extract questionnaire response to FHIR",
      "action" : [
        {
          "operation" : {
            "id" : "TES-01",
            "extension" : [
              {
                "url" : "http://fyrstain.com/pdt/returnResourceType",
                "valueString" : "Bundle"
              }
            ],
            "type" : {
              "system" : "http://hl7.org/fhir/restful-interaction",
              "code" : "operation"
            },
            "resource" : "QuestionnaireResponse",
            "description" : "Extract questionnaire response to FHIR",
            "destination" : 1,
            "encodeRequestUrl" : false,
            "method" : "post",
            "origin" : 1,
            "params" : "$extract",
            "targetId" : "Questionnaire-StudyVariable-S1"
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-01",
            "label" : "HTTPStatus",
            "description" : "Confirmer que le statut HTTP renvoyé est 200.",
            "direction" : "response",
            "responseCode" : "200",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-02",
            "label" : "Resource",
            "description" : "Confirmer que le type de ressource renvoyé est Bundle.",
            "direction" : "response",
            "resource" : "Bundle",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-03",
            "label" : "FHIRPath",
            "description" : "Confirm that the returned Bundle contains the resource Procedure.",
            "direction" : "response",
            "expression" : "Bundle.entry[0].resource.is(Procedure)",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-04",
            "label" : "FHIRPath",
            "description" : "Confirm that the returned Bundle contains the resource FamilyMemberHistory.",
            "direction" : "response",
            "expression" : "Bundle.entry[1].resource.is(FamilyMemberHistory)",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-05",
            "label" : "FHIRPath",
            "description" : "Confirm that the returned Bundle contains the resource Observation.",
            "direction" : "response",
            "expression" : "Bundle.entry[2].resource.is(Observation)",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-06",
            "label" : "FHIRPath",
            "description" : "Confirm that the returned Bundle contains the resource Procedure.",
            "direction" : "response",
            "expression" : "Bundle.entry[3].resource.is(Procedure)",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-07",
            "label" : "FHIRPath",
            "description" : "Confirm that the returned Bundle contains the resource Observation.",
            "direction" : "response",
            "expression" : "Bundle.entry[4].resource.is(Observation)",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-08",
            "label" : "FHIRPath",
            "description" : "Confirm that the returned Bundle contains the resource Observation.",
            "direction" : "response",
            "expression" : "Bundle.entry[5].resource.is(Observation)",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "id" : "TES-01-ASS-09",
            "label" : "FHIRPath",
            "description" : "Confirm that the returned Bundle contains 6 entries.",
            "direction" : "response",
            "expression" : "Bundle.entry.count() = 6",
            "warningOnly" : false
          }
        }
      ]
    }
  ]
}

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