WildFHIR R4 Enterprise Edition Implementation Guide
1.0.0 - current
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-26 |
<TestScript xmlns="http://hl7.org/fhir">
<id value="wildfhirr4patientpurgeusageexamplejson"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: TestScript wildfhirr4patientpurgeusageexamplejson</b></p><a name="wildfhirr4patientpurgeusageexamplejson"> </a><a name="hcwildfhirr4patientpurgeusageexamplejson"> </a><a name="wildfhirr4patientpurgeusageexamplejson-en-US"> </a><p><b>url</b>: <a href="TestScript-wildfhirr4patientpurgeusageexamplejson.html">TestScript WildFHIR R4 TestScript Patient/[id]/$purge Usage Example JSON</a></p><p><b>version</b>: 1.0.0</p><p><b>name</b>: WildFHIRR4PatientPurgeUsageExampleJSON</p><p><b>title</b>: WildFHIR R4 TestScript Patient/[id]/$purge Usage Example JSON</p><p><b>status</b>: Active</p><p><b>date</b>: 2025-03-26</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 Patient/[id]/$purge operation using JSON Format. Data for the known Patient id 'wildfhir-patient-purge' is purged in the setup followed by a single test that recreates the original data via PUT update/create operations.</p>
</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>
</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><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>observation-update</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <code>./Observation-wildfhir-observation-purge.json</code></p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: patientId</p><p><b>path</b>: .id</p><p><b>sourceId</b>: patient-update</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: observationId</p><p><b>path</b>: .id</p><p><b>sourceId</b>: observation-update</p></blockquote><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>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></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>Patient</td><td>Purge all data for the known Patient id 'wildfhir-patient-purge' to insure all history and current instances are removed</td><td>json</td><td>json</td><td>1</td><td>true</td><td>1</td><td>/${patientId}/$purge</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 original data for 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, order matters for referential integrity</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><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>Observation</td><td>Create the known Observation via an update, order matters for referential integrity</td><td>json</td><td>json</td><td>1</td><td>true</td><td>1</td><td>/${observationId}</td><td>observation-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>
</text>
<url
value="http://wildfhir4.aegis.net/ig/wildfhir/TestScript/wildfhirr4patientpurgeusageexamplejson"/>
<version value="1.0.0"/>
<name value="WildFHIRR4PatientPurgeUsageExampleJSON"/>
<title
value="WildFHIR R4 TestScript Patient/[id]/$purge Usage Example JSON"/>
<status value="active"/>
<date value="2025-03-26"/>
<publisher value="AEGIS.net, Inc."/>
<contact>
<name value="AEGIS.net, Inc."/>
<telecom>
<system value="url"/>
<value value="https://www.aegis.net"/>
</telecom>
</contact>
<contact>
<name value="Richard Ettema"/>
<telecom>
<system value="email"/>
<value value="mailto:richard.ettema@aegis.net"/>
</telecom>
</contact>
<description
value="Example TestScript to illustrate the use of the WildFHIR R4 Patient/[id]/$purge operation using JSON Format. Data for the known Patient id 'wildfhir-patient-purge' is purged in the setup followed by a single test that recreates the original data via PUT update/create operations."/>
<jurisdiction>
<coding>
<system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
<code value="001"/>
<display value="World"/>
</coding>
</jurisdiction>
<copyright value="(c) AEGIS.net, Inc. 2025"/>
<origin>
<index value="1"/>
<profile>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types"/>
<code value="FHIR-Client"/>
</profile>
</origin>
<destination>
<index value="1"/>
<profile>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types"/>
<code value="FHIR-Server"/>
</profile>
</destination>
<fixture id="patient-update">
<autocreate value="false"/>
<autodelete value="false"/>
<resource>
<reference value="./Patient-wildfhir-patient-purge.json"/>
</resource>
</fixture>
<fixture id="observation-update">
<autocreate value="false"/>
<autodelete value="false"/>
<resource>
<reference value="./Observation-wildfhir-observation-purge.json"/>
</resource>
</fixture>
<variable>
<name value="patientId"/>
<path value=".id"/>
<sourceId value="patient-update"/>
</variable>
<variable>
<name value="observationId"/>
<path value=".id"/>
<sourceId value="observation-update"/>
</variable>
<setup>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="process-message"/>
</type>
<resource value="Patient"/>
<description
value="Purge all data for the known Patient id 'wildfhir-patient-purge' to insure all history and current instances are removed"/>
<accept value="json"/>
<contentType value="json"/>
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="/${patientId}/$purge"/>
</operation>
</action>
<action>
<assert>
<description
value="Confirm that the returned HTTP response code is success."/>
<direction value="response"/>
<value value="200"/>
<warningOnly value="false"/>
</assert>
</action>
</setup>
<test id="RecreatePatientData">
<name value="RecreatePatientData"/>
<description
value="Recreate the original data for the Patient id 'wildfhir-patient-purge' using JSON Format on destination server."/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="update"/>
</type>
<resource value="Patient"/>
<description
value="Create the known Patient via an update, order matters for referential integrity"/>
<accept value="json"/>
<contentType value="json"/>
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="/${patientId}"/>
<sourceId value="patient-update"/>
</operation>
</action>
<action>
<assert>
<description
value="Confirm that the returned HTTP response code is success."/>
<direction value="response"/>
<operator value="in"/>
<value value="200,201"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="update"/>
</type>
<resource value="Observation"/>
<description
value="Create the known Observation via an update, order matters for referential integrity"/>
<accept value="json"/>
<contentType value="json"/>
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="/${observationId}"/>
<sourceId value="observation-update"/>
</operation>
</action>
<action>
<assert>
<description
value="Confirm that the returned HTTP response code is success."/>
<direction value="response"/>
<operator value="in"/>
<value value="200,201"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
</TestScript>