{
  "resourceType" : "TestScript",
  "id" : "au-core-practitioner",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: TestScript au-core-practitioner</b></p><a name=\"au-core-practitioner\"> </a><a name=\"hcau-core-practitioner\"> </a><p><b>url</b>: <a href=\"TestScript-au-core-practitioner.html\">TestScript AU Core Practitioner — SHALL-level conformance</a></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: AUCorePractitioner</p><p><b>title</b>: AU Core Practitioner — SHALL-level conformance</p><p><b>status</b>: Active</p><p><b>date</b>: 2026-08-16 05:55:37+0000</p><p><b>publisher</b>: FHIR Frog</p><p><b>contact</b>: FHIR Frog: <a href=\"https://gitlab.com/fhirfrog\">https://gitlab.com/fhirfrog</a></p><p><b>description</b>: </p><div><p>Covers the AU Core Practitioner (2.0.0) requirements: read, search by _id, search by identifier (the fixture's identifier carries the HPI-I system http://ns.electronichealth.net.au/id/hi/hpii/1.0, so this same identifier search exercises the HPI-I slice — per fhirfrog/au-core-compiler#17, Inferno's separate HPI-I search test is functionally just a parameterised identifier search that fhir-frog's generic byUrl pass-through already handles, so no distinct test action is needed for it), search by name, must-support element presence, and profile conformance validation. Mirrors au-fhir-core-inferno's PractitionerGroup (practitioner_read_test, practitioner_id_search_test, practitioner_identifier_search_test, practitioner_identifier_hpii_search_test, practitioner_name_search_test, practitioner_must_support_test, practitioner_validation_test). The _id/name/identifier(HPI-I) searches are SHOULD-level in AU Core but are included here because issue #17 explicitly calls for _id/identifier/name coverage; their combinatorial SHOULD/MAY variants (chained params, GET/POST result-count comparisons, etc.) are not replicated — see fhirfrog/au-core-compiler#6 for the general scope rationale.</p>\n</div><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>practitioner-fixture</blockquote><p><b>autocreate</b>: true</p><p><b>autodelete</b>: true</p><p><b>resource</b>: <code>au-core-practitioner-conformant</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>practitionerId</td><td>Practitioner.id</td><td>practitioner-fixture</td></tr></table><blockquote><p><b>test</b></p><p><b>name</b>: Read</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>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-read\">Test script operation code: read</a> (Read)</td><td>Practitioner</td><td>true</td><td>/${practitionerId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>okay</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: SearchById</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>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-search\">Test script operation code: search</a> (Search)</td><td>Practitioner</td><td>true</td><td>?_id=${practitionerId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>okay</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>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Bundle.entry.resource.ofType(Practitioner).name.family.where($this = 'Frog').exists()</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: SearchByIdentifier</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>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-search\">Test script operation code: search</a> (Search)</td><td>Practitioner</td><td>true</td><td>?identifier=http://ns.electronichealth.net.au/id/hi/hpii/1.0|8003621234567890</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>okay</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>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Bundle.entry.resource.ofType(Practitioner).name.family.where($this = 'Frog').exists()</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>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Bundle.entry.resource.ofType(Practitioner).identifier.where(system = 'http://ns.electronichealth.net.au/id/hi/hpii/1.0').exists()</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: SearchByName</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>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-search\">Test script operation code: search</a> (Search)</td><td>Practitioner</td><td>true</td><td>?name=Frog</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>okay</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>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Bundle.entry.resource.ofType(Practitioner).name.family.where($this = 'Frog').exists()</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: MustSupport</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>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-read\">Test script operation code: read</a> (Read)</td><td>Practitioner</td><td>true</td><td>/${practitionerId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Practitioner.identifier.exists()</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>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Practitioner.name.exists()</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>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Practitioner.name.family.exists()</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>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Practitioner.name.given.exists()</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: ProfileValidation</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>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-read\">Test script operation code: read</a> (Read)</td><td>Practitioner</td><td>true</td><td>/${practitionerId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ValidateProfileId</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>http://hl7.org.au/fhir/core/StructureDefinition/au-core-practitioner</td><td>false</td></tr></table></blockquote></blockquote></div>"
  },
  "url" : "http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-practitioner",
  "version" : "0.1.0",
  "name" : "AUCorePractitioner",
  "title" : "AU Core Practitioner — SHALL-level conformance",
  "status" : "active",
  "date" : "2026-08-16T05:55:37+00:00",
  "publisher" : "FHIR Frog",
  "contact" : [{
    "name" : "FHIR Frog",
    "telecom" : [{
      "system" : "url",
      "value" : "https://gitlab.com/fhirfrog"
    }]
  }],
  "description" : "Covers the AU Core Practitioner (2.0.0) requirements: read, search by _id, search by identifier (the fixture's identifier carries the HPI-I system http://ns.electronichealth.net.au/id/hi/hpii/1.0, so this same identifier search exercises the HPI-I slice — per fhirfrog/au-core-compiler#17, Inferno's separate HPI-I search test is functionally just a parameterised identifier search that fhir-frog's generic byUrl pass-through already handles, so no distinct test action is needed for it), search by name, must-support element presence, and profile conformance validation. Mirrors au-fhir-core-inferno's PractitionerGroup (practitioner_read_test, practitioner_id_search_test, practitioner_identifier_search_test, practitioner_identifier_hpii_search_test, practitioner_name_search_test, practitioner_must_support_test, practitioner_validation_test). The _id/name/identifier(HPI-I) searches are SHOULD-level in AU Core but are included here because issue #17 explicitly calls for _id/identifier/name coverage; their combinatorial SHOULD/MAY variants (chained params, GET/POST result-count comparisons, etc.) are not replicated — see fhirfrog/au-core-compiler#6 for the general scope rationale.",
  "fixture" : [{
    "id" : "practitioner-fixture",
    "autocreate" : true,
    "autodelete" : true,
    "resource" : {
      "reference" : "au-core-practitioner-conformant"
    }
  }],
  "variable" : [{
    "name" : "practitionerId",
    "path" : "Practitioner.id",
    "sourceId" : "practitioner-fixture"
  }],
  "test" : [{
    "name" : "Read",
    "action" : [{
      "operation" : {
        "type" : {
          "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
          "code" : "read"
        },
        "resource" : "Practitioner",
        "encodeRequestUrl" : true,
        "params" : "/${practitionerId}"
      }
    },
    {
      "assert" : {
        "response" : "okay",
        "warningOnly" : false
      }
    }]
  },
  {
    "name" : "SearchById",
    "action" : [{
      "operation" : {
        "type" : {
          "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
          "code" : "search"
        },
        "resource" : "Practitioner",
        "encodeRequestUrl" : true,
        "params" : "?_id=${practitionerId}"
      }
    },
    {
      "assert" : {
        "response" : "okay",
        "warningOnly" : false
      }
    },
    {
      "assert" : {
        "expression" : "Bundle.entry.resource.ofType(Practitioner).name.family.where($this = 'Frog').exists()",
        "warningOnly" : false
      }
    }]
  },
  {
    "name" : "SearchByIdentifier",
    "action" : [{
      "operation" : {
        "type" : {
          "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
          "code" : "search"
        },
        "resource" : "Practitioner",
        "encodeRequestUrl" : true,
        "params" : "?identifier=http://ns.electronichealth.net.au/id/hi/hpii/1.0|8003621234567890"
      }
    },
    {
      "assert" : {
        "response" : "okay",
        "warningOnly" : false
      }
    },
    {
      "assert" : {
        "expression" : "Bundle.entry.resource.ofType(Practitioner).name.family.where($this = 'Frog').exists()",
        "warningOnly" : false
      }
    },
    {
      "assert" : {
        "expression" : "Bundle.entry.resource.ofType(Practitioner).identifier.where(system = 'http://ns.electronichealth.net.au/id/hi/hpii/1.0').exists()",
        "warningOnly" : false
      }
    }]
  },
  {
    "name" : "SearchByName",
    "action" : [{
      "operation" : {
        "type" : {
          "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
          "code" : "search"
        },
        "resource" : "Practitioner",
        "encodeRequestUrl" : true,
        "params" : "?name=Frog"
      }
    },
    {
      "assert" : {
        "response" : "okay",
        "warningOnly" : false
      }
    },
    {
      "assert" : {
        "expression" : "Bundle.entry.resource.ofType(Practitioner).name.family.where($this = 'Frog').exists()",
        "warningOnly" : false
      }
    }]
  },
  {
    "name" : "MustSupport",
    "action" : [{
      "operation" : {
        "type" : {
          "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
          "code" : "read"
        },
        "resource" : "Practitioner",
        "encodeRequestUrl" : true,
        "params" : "/${practitionerId}"
      }
    },
    {
      "assert" : {
        "expression" : "Practitioner.identifier.exists()",
        "warningOnly" : false
      }
    },
    {
      "assert" : {
        "expression" : "Practitioner.name.exists()",
        "warningOnly" : false
      }
    },
    {
      "assert" : {
        "expression" : "Practitioner.name.family.exists()",
        "warningOnly" : false
      }
    },
    {
      "assert" : {
        "expression" : "Practitioner.name.given.exists()",
        "warningOnly" : false
      }
    }]
  },
  {
    "name" : "ProfileValidation",
    "action" : [{
      "operation" : {
        "type" : {
          "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
          "code" : "read"
        },
        "resource" : "Practitioner",
        "encodeRequestUrl" : true,
        "params" : "/${practitionerId}"
      }
    },
    {
      "assert" : {
        "validateProfileId" : "http://hl7.org.au/fhir/core/StructureDefinition/au-core-practitioner",
        "warningOnly" : false
      }
    }]
  }]
}