WildFHIR R4 Enterprise Edition Implementation Guide - Local Development build (v1.0.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
Active as of 2025-03-31 |
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
a fhir:TestScript ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "wildfhirr4purgeallusageexamplejson"] ; #
fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: TestScript wildfhirr4purgeallusageexamplejson</b></p><a name=\"wildfhirr4purgeallusageexamplejson\"> </a><a name=\"hcwildfhirr4purgeallusageexamplejson\"> </a><a name=\"wildfhirr4purgeallusageexamplejson-en-US\"> </a><p><b>url</b>: <a href=\"TestScript-wildfhirr4purgeallusageexamplejson.html\">TestScript WildFHIR R4 TestScript Global $purge-all Usage Example JSON</a></p><p><b>version</b>: 1.0.0</p><p><b>name</b>: WildFHIRR4PurgeAllUsageExampleJSON</p><p><b>title</b>: WildFHIR R4 TestScript Global $purge-all Usage Example JSON</p><p><b>status</b>: Active</p><p><b>date</b>: 2025-03-31</p><p><b>publisher</b>: AEGIS.net, Inc.</p><p><b>contact</b>: AEGIS.net, Inc.: <a href=\"https://www.aegis.net\">https://www.aegis.net</a>, Richard Ettema: <a href=\"mailto:mailto:richard.ettema@aegis.net\">mailto:richard.ettema@aegis.net</a></p><p><b>description</b>: </p><div><p>Example TestScript to illustrate the use of the WildFHIR R4 Global $purge-all operation using JSON Format. All WildFHIR data is purged in the setup followed by a single test that recreates a known Patient 'wildfhir-patient-purge' via a PUT update/create operation.</p>\n</div><p><b>jurisdiction</b>: <span title=\"Codes:{http://unstats.un.org/unsd/methods/m49/m49.htm 001}\">World</span></p><p><b>copyright</b>: </p><div><p>(c) AEGIS.net, Inc. 2025</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.2.0/CodeSystem-testscript-profile-origin-types.html#testscript-profile-origin-types-FHIR-Client\">Test script profile origin type FHIR-Client</a>: 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.2.0/CodeSystem-testscript-profile-destination-types.html#testscript-profile-destination-types-FHIR-Server\">Test script profile destination type FHIR-Server</a>: FHIR Server</td></tr></table><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>patient-update</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <code>./Patient-wildfhir-patient-purge.json</code></p></blockquote><h3>Variables</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>Path</b></td><td><b>SourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>patientId</td><td>.id</td><td>patient-update</td></tr></table><blockquote><p><b>setup</b></p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>ContentType</b></td><td><b>Destination</b></td><td><b>EncodeRequestUrl</b></td><td><b>Origin</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/6.2.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-process-message\">Test script operation code process-message</a>: $process-message</td><td>Purge ALL WildFHIR data</td><td>json</td><td>json</td><td>1</td><td>true</td><td>1</td><td>/$purge-all</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP response code is success.</td><td>response</td><td>200</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>RecreatePatientData</blockquote><p><b>name</b>: RecreatePatientData</p><p><b>description</b>: Recreate the Patient id 'wildfhir-patient-purge' using JSON Format on destination server.</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>ContentType</b></td><td><b>Destination</b></td><td><b>EncodeRequestUrl</b></td><td><b>Origin</b></td><td><b>Params</b></td><td><b>SourceId</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/6.2.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-update\">Test script operation code update</a>: Update</td><td>Patient</td><td>Create the known Patient via an update</td><td>json</td><td>json</td><td>1</td><td>true</td><td>1</td><td>/${patientId}</td><td>patient-update</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP response code is success.</td><td>response</td><td>in</td><td>200,201</td><td>false</td></tr></table></blockquote></blockquote></div>"^^rdf:XMLLiteral
] ; #
fhir:url [ fhir:v "http://wildfhir4.aegis.net/ig/wildfhir/TestScript/wildfhirr4purgeallusageexamplejson"^^xsd:anyURI] ; #
fhir:version [ fhir:v "1.0.0"] ; #
fhir:name [ fhir:v "WildFHIRR4PurgeAllUsageExampleJSON"] ; #
fhir:title [ fhir:v "WildFHIR R4 TestScript Global $purge-all Usage Example JSON"] ; #
fhir:status [ fhir:v "active"] ; #
fhir:date [ fhir:v "2025-03-31"^^xsd:date] ; #
fhir:publisher [ fhir:v "AEGIS.net, Inc."] ; #
fhir:contact ( [
fhir:name [ fhir:v "AEGIS.net, Inc." ] ;
( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://www.aegis.net" ] ] )
] [
fhir:name [ fhir:v "Richard Ettema" ] ;
( fhir:telecom [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "mailto:richard.ettema@aegis.net" ] ] )
] ) ; #
fhir:description [ fhir:v "Example TestScript to illustrate the use of the WildFHIR R4 Global $purge-all operation using JSON Format. All WildFHIR data is purged in the setup followed by a single test that recreates a known Patient 'wildfhir-patient-purge' via a PUT update/create operation."] ; #
fhir:jurisdiction ( [
( fhir:coding [
fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
fhir:code [ fhir:v "001" ] ;
fhir:display [ fhir:v "World" ] ] )
] ) ; #
fhir:copyright [ fhir:v "(c) AEGIS.net, Inc. 2025"] ; #
fhir:origin ( [
fhir:index [ fhir:v 1 ] ;
fhir:profile [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types"^^xsd:anyURI ] ;
fhir:code [ fhir:v "FHIR-Client" ] ]
] ) ; #
fhir:destination ( [
fhir:index [ fhir:v 1 ] ;
fhir:profile [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types"^^xsd:anyURI ] ;
fhir:code [ fhir:v "FHIR-Server" ] ]
] ) ; #
fhir:fixture ( [
fhir:id [ fhir:v "patient-update" ] ;
fhir:autocreate [ fhir:v false ] ;
fhir:autodelete [ fhir:v false ] ;
fhir:resource [
fhir:reference [ fhir:v "./Patient-wildfhir-patient-purge.json" ] ]
] ) ; #
fhir:variable ( [
fhir:name [ fhir:v "patientId" ] ;
fhir:path [ fhir:v ".id" ] ;
fhir:sourceId [ fhir:v "patient-update" ]
] ) ; #
fhir:setup [
( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "process-message" ] ] ;
fhir:description [ fhir:v "Purge ALL WildFHIR data" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:contentType [ fhir:v "json" ] ;
fhir:destination [ fhir:v 1 ] ;
fhir:encodeRequestUrl [ fhir:v true ] ;
fhir:origin [ fhir:v 1 ] ;
fhir:params [ fhir:v "/$purge-all" ] ] ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned HTTP response code is success." ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:value [ fhir:v "200" ] ;
fhir:warningOnly [ fhir:v false ] ] ] )
] ; #
fhir:test ( [
fhir:id [ fhir:v "RecreatePatientData" ] ;
fhir:name [ fhir:v "RecreatePatientData" ] ;
fhir:description [ fhir:v "Recreate the Patient id 'wildfhir-patient-purge' using JSON Format on destination server." ] ;
( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "update" ] ] ;
fhir:resource [ fhir:v "Patient" ] ;
fhir:description [ fhir:v "Create the known Patient via an update" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:contentType [ fhir:v "json" ] ;
fhir:destination [ fhir:v 1 ] ;
fhir:encodeRequestUrl [ fhir:v true ] ;
fhir:origin [ fhir:v 1 ] ;
fhir:params [ fhir:v "/${patientId}" ] ;
fhir:sourceId [ fhir:v "patient-update" ] ] ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned HTTP response code is success." ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:operator [ fhir:v "in" ] ;
fhir:value [ fhir:v "200,201" ] ;
fhir:warningOnly [ fhir:v false ] ] ] )
] ) . #
IG © 2024+ AEGIS.net, Inc.. Package net.aegis.wildfhir4.ig.wildfhir#1.0.0 based on FHIR 4.0.1. Generated 2025-03-31
Links: Table of Contents |
QA Report