au-core-practitioner
type: TestScript
node role: treeRoot
resource.id:
  value: au-core-practitioner
domain resource.text:
  narrative.status:
    value: generated
  narrative.div: Generated Narrative: TestScript au-core-practitioner url: TestScript AU Core Practitioner — SHALL-level conformance version: 0.1.0 name: AUCorePractitioner title: AU Core Practitioner — SHALL-level conformance status: Active date: 2026-08-16 05:55:37+0000 publisher: FHIR Frog contact: FHIR Frog: 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: au-core-practitioner-conformant Variables - Name Path SourceId * practitionerId Practitioner.id practitioner-fixture test name: Read action Operations - Type Resource EncodeRequestUrl Params * Test script operation code: read (Read) Practitioner true /${practitionerId} action Asserts - Response WarningOnly * okay false test name: SearchById action Operations - Type Resource EncodeRequestUrl P…
test script.url:
  value: http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-practitioner
test script.version:
  value: 0.1.0
test script.name:
  value: AUCorePractitioner
test script.title:
  value: AU Core Practitioner — SHALL-level conformance
test script.status:
  value: active
test script.date:
  value: 2026-08-16T05:55:37+00:00
test script.publisher:
  value: FHIR Frog
test script.contact:
  index: 0
  contact detail.name:
    value: FHIR Frog
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: https://gitlab.com/fhirfrog
test script.description:
  value: 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.
test script.fixture:
  index: 0
  element.id:
    value: practitioner-fixture
  test script.fixture.autocreate:
    value: true
  test script.fixture.autodelete:
    value: true
  test script.fixture.resource:
    reference.reference:
      value: au-core-practitioner-conformant
test script.variable:
  index: 0
  test script.variable.name:
    value: practitionerId
  test script.variable.path:
    value: Practitioner.id
  test script.variable.source id:
    value: practitioner-fixture
test script.test:
  index: 0
  test script.test.name:
    value: Read
  test script.test.action:
    index: 0
    test script.test.action.operation:
      test script.setup.action.operation.resource:
        value: Practitioner
      test script.setup.action.operation.encode request url:
        value: true
      test script.setup.action.operation.params:
        value: /${practitionerId}
  test script.test.action:
    index: 1
    test script.test.action.assert:
      test script.setup.action.assert.response:
        value: okay
      test script.setup.action.assert.warning only:
        value: false
test script.test:
  index: 1
  test script.test.name:
    value: SearchById
  test script.test.action:
    index: 0
    test script.test.action.operation:
      test script.setup.action.operation.resource:
        value: Practitioner
      test script.setup.action.operation.encode request url:
        value: true
      test script.setup.action.operation.params:
        value: ?_id=${practitionerId}
  test script.test.action:
    index: 1
    test script.test.action.assert:
      test script.setup.action.assert.response:
        value: okay
      test script.setup.action.assert.warning only:
        value: false
  test script.test.action:
    index: 2
    test script.test.action.assert:
      test script.setup.action.assert.expression:
        value: Bundle.entry.resource.ofType(Practitioner).name.family.where($this = 'Frog').exists()
      test script.setup.action.assert.warning only:
        value: false
test script.test:
  index: 2
  test script.test.name:
    value: SearchByIdentifier
  test script.test.action:
    index: 0
    test script.test.action.operation:
      test script.setup.action.operation.resource:
        value: Practitioner
      test script.setup.action.operation.encode request url:
        value: true
      test script.setup.action.operation.params:
        value: ?identifier=http://ns.electronichealth.net.au/id/hi/hpii/1.0|8003621234567890
  test script.test.action:
    index: 1
    test script.test.action.assert:
      test script.setup.action.assert.response:
        value: okay
      test script.setup.action.assert.warning only:
        value: false
  test script.test.action:
    index: 2
    test script.test.action.assert:
      test script.setup.action.assert.expression:
        value: Bundle.entry.resource.ofType(Practitioner).name.family.where($this = 'Frog').exists()
      test script.setup.action.assert.warning only:
        value: false
  test script.test.action:
    index: 3
    test script.test.action.assert:
      test script.setup.action.assert.expression:
        value: Bundle.entry.resource.ofType(Practitioner).identifier.where(system = 'http://ns.electronichealth.net.au/id/hi/hpii/1.0').exists()
      test script.setup.action.assert.warning only:
        value: false
test script.test:
  index: 3
  test script.test.name:
    value: SearchByName
  test script.test.action:
    index: 0
    test script.test.action.operation:
      test script.setup.action.operation.resource:
        value: Practitioner
      test script.setup.action.operation.encode request url:
        value: true
      test script.setup.action.operation.params:
        value: ?name=Frog
  test script.test.action:
    index: 1
    test script.test.action.assert:
      test script.setup.action.assert.response:
        value: okay
      test script.setup.action.assert.warning only:
        value: false
  test script.test.action:
    index: 2
    test script.test.action.assert:
      test script.setup.action.assert.expression:
        value: Bundle.entry.resource.ofType(Practitioner).name.family.where($this = 'Frog').exists()
      test script.setup.action.assert.warning only:
        value: false
test script.test:
  index: 4
  test script.test.name:
    value: MustSupport
  test script.test.action:
    index: 0
    test script.test.action.operation:
      test script.setup.action.operation.resource:
        value: Practitioner
      test script.setup.action.operation.encode request url:
        value: true
      test script.setup.action.operation.params:
        value: /${practitionerId}
  test script.test.action:
    index: 1
    test script.test.action.assert:
      test script.setup.action.assert.expression:
        value: Practitioner.identifier.exists()
      test script.setup.action.assert.warning only:
        value: false
  test script.test.action:
    index: 2
    test script.test.action.assert:
      test script.setup.action.assert.expression:
        value: Practitioner.name.exists()
      test script.setup.action.assert.warning only:
        value: false
  test script.test.action:
    index: 3
    test script.test.action.assert:
      test script.setup.action.assert.expression:
        value: Practitioner.name.family.exists()
      test script.setup.action.assert.warning only:
        value: false
  test script.test.action:
    index: 4
    test script.test.action.assert:
      test script.setup.action.assert.expression:
        value: Practitioner.name.given.exists()
      test script.setup.action.assert.warning only:
        value: false

value: read

value: search

value: search

value: search

value: read

index: 5
test script.test.name:
  value: ProfileValidation
test script.test.action:
  index: 0
  test script.test.action.operation:
    test script.setup.action.operation.type:
      coding.system:
        value: http://terminology.hl7.org/CodeSystem/testscript-operation-codes
      coding.code:
        value: read
    test script.setup.action.operation.resource:
      value: Practitioner
    test script.setup.action.operation.encode request url:
      value: true
    test script.setup.action.operation.params:
      value: /${practitionerId}
test script.test.action:
  index: 1
  test script.test.action.assert:
    test script.setup.action.assert.validate profile id:
      value: http://hl7.org.au/fhir/core/StructureDefinition/au-core-practitioner
    test script.setup.action.assert.warning only:
      value: false