FHIR IG analytics| Package | hl7.eu.fhir.flute |
| Resource Type | TestScript |
| Id | TestScript-TS-Flute-04.json |
| FHIR Version | R4 |
| Source | 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 |
| 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 |
No resources found
No resources found
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
| Index | Profile |
| 1 | Test script profile origin type: FHIR-Client (FHIR Client) |
| Index | Profile |
| 1 | Test script profile destination type: FHIR-Server (FHIR Server) |
fixture
id
fixture-patient-createautocreate: false
autodelete: false
resource: Peter Dubois (official) Male, DoB: 1974-12-25 ( http://hospital.example.org/patients#EXP-S1-Patient)
fixture
id
fixture-questionnaireResponse-createautocreate: false
autodelete: false
variable
id
Questionnaire-StudyVariable-S1name: Questionnaire-StudyVariable-S1
defaultValue: Questionnaire-StudyVariable-S1
path: id
test
id
01-ExtractQuestionnaireResponsename: Extract questionnaire response to FHIR
description: Extract questionnaire response to FHIR
action
operation
id
TES-01com/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-01label: HTTPStatus
description: Confirmer que le statut HTTP renvoyé est 200.
direction: response
responseCode: 200
warningOnly: false
action
assert
id
TES-01-ASS-02label: Resource
description: Confirmer que le type de ressource renvoyé est Bundle.
direction: response
resource: Bundle
warningOnly: false
action
assert
id
TES-01-ASS-03label: 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-04label: 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-05label: 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-06label: 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-07label: 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-08label: 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-09label: FHIRPath
description: Confirm that the returned Bundle contains 6 entries.
direction: response
expression: Bundle.entry.count() = 6
warningOnly: false
{
"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
}
}
]
}
]
}