FLUTE Cross-border Prostate Cancer Data Standard Guide
0.1.0 - ci-build
Funded by the European Union

FLUTE Cross-border Prostate Cancer Data Standard Guide, published by Flute Project. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/hl7-eu/flute/ and changes regularly. See the Directory of published versions

: This TestScript is designed to validate the extract of a questionnaire response - JSON Representation

Draft as of 2024-05-31

Raw json | Download

{
  "resourceType" : "TestScript",
  "id" : "TS-Flute-04",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: TestScript TS-Flute-04</b></p><a name=\"TS-Flute-04\"> </a><a name=\"hcTS-Flute-04\"> </a><a name=\"TS-Flute-04-en-US\"> </a><p><b>url</b>: <a href=\"TestScript-TS-Flute-04.html\">TestScript This TestScript is designed to validate the extract of a questionnaire response</a></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>: </p><div><p>This TestScript is designed to validate the extract of a questionnaire response</p>\n</div><p><b>purpose</b>: </p><div><p>This TestScript is designed to validate the extract of a questionnaire response</p>\n</div><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><a href=\"http://terminology.hl7.org/6.0.2/CodeSystem-testscript-profile-origin-types.html#testscript-profile-origin-types-FHIR-Client\">Test script profile origin type</a> FHIR-Client: FHIR Client</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><a href=\"http://terminology.hl7.org/6.0.2/CodeSystem-testscript-profile-destination-types.html#testscript-profile-destination-types-FHIR-Server\">Test script profile destination type</a> FHIR-Server: FHIR Server</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\">Peter Dubois (official) Male, DoB: 1974-12-25</a></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\">Response to Questionnaire '-&gt;Study variable Extraction' about '-&gt;Bundle: type = transaction'</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></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></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
          }
        }
      ]
    }
  ]
}