FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagehl7.eu.fhir.flute
Resource TypeTestScript
IdTestScript-TS-Flute-04.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/hl7-eu/flute/TestScript-TS-Flute-04.html
URLhttp://hl7.eu/fhir/ig/flute/TestScript/TS-Flute-04
Version0.1.0
Statusdraft
Date2024-05-31
NameTestScriptExtractQuestionnaireResponse
TitleThis TestScript is designed to validate the extract of a questionnaire response
Realmeu
Authorityhl7
DescriptionThis TestScript is designed to validate the extract of a questionnaire response
PurposeThis 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 TS-Flute-04

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

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
*1Test script profile origin type: FHIR-Client (FHIR Client)

Destinations

-IndexProfile
*1Test script profile destination type: FHIR-Server (FHIR Server)

fixture

id

fixture-patient-create

autocreate: false

autodelete: false

resource: Peter Dubois (official) Male, DoB: 1974-12-25 ( http://hospital.example.org/patients#EXP-S1-Patient)

fixture

id

fixture-questionnaireResponse-create

autocreate: false

autodelete: false

resource: Response to Questionnaire '->Study variable Extraction' about '->Jacque Dubois (official) Male, DoB: 1974-12-25'

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

com/test/StructureDefinition/EXT-ReturnResourceType: Bundle

type: Custom Operations: extract (Extract Data)

resource: QuestionnaireResponse

description: Extract questionnaire response to FHIR

destination: 1

encodeRequestUrl: false

method: POST

origin: 1

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


Source1

{
  "resourceType": "TestScript",
  "id": "TS-Flute-04",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "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://isis.com/test/StructureDefinition/EXT-ReturnResourceType",
                "valueString": "Bundle"
              }
            ],
            "type": {
              "system": "http://hl7.eu/fhir/ig/flute/CodeSystem/COS-CustomOperations",
              "code": "extract"
            },
            "resource": "QuestionnaireResponse",
            "description": "Extract questionnaire response to FHIR",
            "destination": 1,
            "encodeRequestUrl": false,
            "method": "post",
            "origin": 1,
            "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
          }
        }
      ]
    }
  ]
}