US Core Testing Guide
3.1.1-1 - ci-build United States of America flag

US Core Testing Guide - Local Development build (v3.1.1-1). See the Directory of published versions

: HL7 FHIR R4 TestScript Read Validate US Core AllergyIntolerance JSON - TTL Representation

Active as of 2023-08-25

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@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 "Allergyreadvalidatejson"] ; #
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: TestScript</b><a name=\"Allergyreadvalidatejson\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource TestScript &quot;Allergyreadvalidatejson&quot; </p></div><p><b>url</b>: <code>http://hl7.org/fhir/us/core-tg/TestScript/Allergyreadvalidatejson</code></p><p><b>version</b>: 3.1.1-1</p><p><b>name</b>: Allergyreadvalidatejson</p><p><b>title</b>: HL7 FHIR R4 TestScript Read Validate US Core AllergyIntolerance JSON</p><p><b>status</b>: active</p><p><b>date</b>: 2023-08-25</p><p><b>publisher</b>: HL7 FHIR Infrastructure WG</p><p><b>contact</b>: HL7 FHIR Infrastructure WG: <a href=\"https://hl7.org/Special/committees/fiwg\">https://hl7.org/Special/committees/fiwg</a>, Richard Ettema: <a href=\"mailto:mailto:richard.ettema@aegis.net\">mailto:richard.ettema@aegis.net</a></p><p><b>description</b>: TestScript to test USCoreAllergyIntolerance resource read and profile validation using #json format</p><p><b>jurisdiction</b>: United States of America <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.0.0/CodeSystem-ISO3166Part1.html\">ISO 3166-1 Codes for the representation of names of countries and their subdivisions — Part 1: Country code</a>#US)</span></p><p><b>copyright</b>: (c) Health Level 7 (HL7) International 2023</p><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>FHIR Client (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types code FHIR-Client = 'FHIR Client', stated as 'null')</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>FHIR Server (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types code FHIR-Server = 'FHIR Server', stated as 'null')</td></tr></table><p><b>profile</b>: <a href=\"http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance\">http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance</a> &quot;USCoreAllergyIntolerance&quot;</p><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>ReadValidate</blockquote><p><b>name</b>: ReadValidate</p><p><b>description</b>: Test USCoreAllergyIntolerance resource read on destination server and assert returned resource passes validation</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>Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')</td><td>AllergyIntolerance</td><td>ResourceRead</td><td>json</td><td>json</td><td>1</td><td>true</td><td>1</td><td>/example</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>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned response code is 200 OK.</td><td>response</td><td>200</td><td>false</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>Resource</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned response payload is the specified resource.</td><td>response</td><td>AllergyIntolerance</td><td>false</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>ValidateProfileId</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned resource conforms to the specified profile.</td><td>response</td><td>USCoreAllergyProfile</td><td>false</td></tr></table></blockquote></blockquote></div>"
  ] ; #
  fhir:url [ fhir:v "http://hl7.org/fhir/us/core-tg/TestScript/Allergyreadvalidatejson"^^xsd:anyURI] ; #
  fhir:version [ fhir:v "3.1.1-1"] ; #
  fhir:name [ fhir:v "Allergyreadvalidatejson"] ; #
  fhir:title [ fhir:v "HL7 FHIR R4 TestScript Read Validate US Core AllergyIntolerance JSON"] ; #
  fhir:status [ fhir:v "active"] ; #
  fhir:date [ fhir:v "2023-08-25"^^xsd:date] ; #
  fhir:publisher [ fhir:v "HL7 FHIR Infrastructure WG"] ; #
  fhir:contact ( [
fhir:name [ fhir:v "HL7 FHIR Infrastructure WG" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://hl7.org/Special/committees/fiwg" ]     ] )
  ] [
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 "TestScript to test USCoreAllergyIntolerance resource read and profile validation using #json format"] ; #
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
fhir:code [ fhir:v "US" ]     ] )
  ] ) ; #
  fhir:copyright [ fhir:v "(c) Health Level 7 (HL7) International 2023"] ; #
  fhir:origin ( [
fhir:index [ fhir:v "1"^^xsd:integer ] ;
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"^^xsd:integer ] ;
fhir:profile [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types"^^xsd:anyURI ] ;
fhir:code [ fhir:v "FHIR-Server" ]     ]
  ] ) ; #
  fhir:profile ( [
fhir:link <http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance> ;
fhir:id [ fhir:v "USCoreAllergyProfile" ] ;
fhir:reference [ fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance" ]
  ] ) ; #
  fhir:test ( [
fhir:id [ fhir:v "ReadValidate" ] ;
fhir:name [ fhir:v "ReadValidate" ] ;
fhir:description [ fhir:v "Test USCoreAllergyIntolerance resource read on destination server and assert returned resource passes validation" ] ;
    ( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "read" ]         ] ;
fhir:resource [ fhir:v "AllergyIntolerance" ] ;
fhir:description [ fhir:v "ResourceRead" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:contentType [ fhir:v "json" ] ;
fhir:destination [ fhir:v "1"^^xsd:integer ] ;
fhir:encodeRequestUrl [ fhir:v "true"^^xsd:boolean ] ;
fhir:origin [ fhir:v "1"^^xsd:integer ] ;
fhir:params [ fhir:v "/example" ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned response code is 200 OK." ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:responseCode [ fhir:v "200" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned response payload is the specified resource." ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:resource [ fhir:v "AllergyIntolerance" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned resource conforms to the specified profile." ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:validateProfileId [ fhir:v "USCoreAllergyProfile" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] )
  ] ) . #

<http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance> a fhir:us .