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 populate of a questionnaire - JSON Representation

Draft as of 2024-05-31

Raw json | Download

{
  "resourceType" : "TestScript",
  "id" : "TS-Flute-03",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: TestScript TS-Flute-03</b></p><a name=\"TS-Flute-03\"> </a><a name=\"hcTS-Flute-03\"> </a><a name=\"TS-Flute-03-en-US\"> </a><p><b>url</b>: <a href=\"TestScript-TS-Flute-03.html\">TestScript This TestScript is designed to validate the populate of a questionnaire</a></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: TestScriptPopulateQuestionnaire</p><p><b>title</b>: This TestScript is designed to validate the populate of a questionnaire</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 populate of a questionnaire</p>\n</div><p><b>purpose</b>: </p><div><p>This TestScript is designed to validate the populate of a questionnaire</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-questionnaire-create</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <a href=\"DocumentReference/EXP-DR-Questionnaire-StudyVariable\">DocumentReference/EXP-DR-Questionnaire-StudyVariable</a></p></blockquote><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>01-PopulateQuestionnaire</blockquote><p><b>name</b>: Populate questionnaire</p><p><b>description</b>: Populate questionnaire Study Variable</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></div>"
  },
  "url" : "http://hl7.eu/fhir/ig/flute/TestScript/TS-Flute-03",
  "version" : "0.1.0",
  "name" : "TestScriptPopulateQuestionnaire",
  "title" : "This TestScript is designed to validate the populate of a questionnaire",
  "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 populate of a questionnaire",
  "purpose" : "This TestScript is designed to validate the populate of a questionnaire",
  "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-questionnaire-create",
      "autocreate" : false,
      "autodelete" : false,
      "resource" : {
        "reference" : "DocumentReference/EXP-DR-Questionnaire-StudyVariable"
      }
    }
  ],
  "test" : [
    {
      "id" : "01-PopulateQuestionnaire",
      "name" : "Populate questionnaire",
      "description" : "Populate questionnaire Study Variable",
      "action" : [
        {
          "operation" : {
            "id" : "TES-01",
            "extension" : [
              {
                "url" : "http://fyrstain.com/pdt/returnResourceType",
                "valueString" : "QuestionnaireResponse"
              }
            ],
            "type" : {
              "system" : "http://hl7.org/fhir/restful-interaction",
              "code" : "operation"
            },
            "resource" : "Questionnaire",
            "description" : "Populate of questionnaire",
            "destination" : 1,
            "encodeRequestUrl" : false,
            "method" : "post",
            "origin" : 1,
            "params" : "$populate",
            "sourceId" : "fixture-questionnaire-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 QuestionnaireResponse.",
            "direction" : "response",
            "resource" : "QuestionnaireResponse",
            "warningOnly" : false
          }
        }
      ]
    }
  ]
}