au-core-organization
type: TestScript
node role: treeRoot
resource.id:
  value: au-core-organization
domain resource.text:
  narrative.status:
    value: generated
  narrative.div: Generated Narrative: TestScript au-core-organization url: TestScript AU Core Organization — SHALL-level conformance version: 0.1.0 name: AUCoreOrganization title: AU Core Organization — 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 SHALL-level AU Core Organization (2.0.0) requirements: read, search by identifier, search by name, must-support element presence (including identifier slice-presence checks for HPI-O and ABN), and profile conformance validation. Mirrors the SHALL subset of au-fhir-core-inferno's OrganizationGroup (organization_read_test, organization_identifier_search_test, organization_name_search_test, organization_must_support_test, organization_validation_test) — the SHOULD-level searches (_id, address) and the SHOULD-level identifier-slice-specific searches (organization_identifier_hpio_search_test, organization_identifier_abn_search_test) are not replicated as separate search tests here, consistent with fhirfrog/au-core-compiler#6 scope rationale. The HPI-O/ABN identifier slice presence that those SHOULD-level search tests would otherwise exercise is instead covered directly via FHIRPath assertions in the MustSupport test against a fixture carrying both slices; see fhirfrog/au-core-compiler#16. fixture id organization-fixture autocreate: true autodelete: true resource: au-core-organization-conformant Variables - Name Path SourceId * organizationId Organization.id organization-fixture test name: Read action Operations - Type Resource EncodeRequestUrl Params * Test script operation code: read (Read) Organization true /${organizationId} action Asserts - Response WarningOnly * okay false test name: SearchByIdentifier action Operations - Type Resource EncodeRequestUrl Params * Test script operation code: search (Search) Organization true ?identifier=http://ns.electronichealth.net.au/id/hi/hpio/1.0|8003620000000013 action Asserts - Response…
test script.url:
  value: http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-organization
test script.version:
  value: 0.1.0
test script.name:
  value: AUCoreOrganization
test script.title:
  value: AU Core Organization — 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 SHALL-level AU Core Organization (2.0.0) requirements: read, search by identifier, search by name, must-support element presence (including identifier slice-presence checks for HPI-O and ABN), and profile conformance validation. Mirrors the SHALL subset of au-fhir-core-inferno's OrganizationGroup (organization_read_test, organization_identifier_search_test, organization_name_search_test, organization_must_support_test, organization_validation_test) — the SHOULD-level searches (_id, address) and the SHOULD-level identifier-slice-specific searches (organization_identifier_hpio_search_test, organization_identifier_abn_search_test) are not replicated as separate search tests here, consistent with fhirfrog/au-core-compiler#6 scope rationale. The HPI-O/ABN identifier slice presence that those SHOULD-level search tests would otherwise exercise is instead covered directly via FHIRPath assertions in the MustSupport test against a fixture carrying both slices; see fhirfrog/au-core-compiler#16.
test script.fixture:
  index: 0
  element.id:
    value: organization-fixture
  test script.fixture.autocreate:
    value: true
  test script.fixture.autodelete:
    value: true
  test script.fixture.resource:
    reference.reference:
      value: au-core-organization-conformant
test script.variable:
  index: 0
  test script.variable.name:
    value: organizationId
  test script.variable.path:
    value: Organization.id
  test script.variable.source id:
    value: organization-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: Organization
      test script.setup.action.operation.encode request url:
        value: true
      test script.setup.action.operation.params:
        value: /${organizationId}
  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: SearchByIdentifier
  test script.test.action:
    index: 0
    test script.test.action.operation:
      test script.setup.action.operation.resource:
        value: Organization
      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/hpio/1.0|8003620000000013
  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(Organization).name.where($this.contains('Frog')).exists()
      test script.setup.action.assert.warning only:
        value: false
test script.test:
  index: 2
  test script.test.name:
    value: SearchByName
  test script.test.action:
    index: 0
    test script.test.action.operation:
      test script.setup.action.operation.resource:
        value: Organization
      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(Organization).name.where($this.contains('Frog')).exists()
      test script.setup.action.assert.warning only:
        value: false
test script.test:
  index: 3
  test script.test.name:
    value: MustSupport
  test script.test.action:
    index: 0
    test script.test.action.operation:
      test script.setup.action.operation.resource:
        value: Organization
      test script.setup.action.operation.encode request url:
        value: true
      test script.setup.action.operation.params:
        value: /${organizationId}
  test script.test.action:
    index: 1
    test script.test.action.assert:
      test script.setup.action.assert.expression:
        value: Organization.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: Organization.identifier.where(system = 'http://ns.electronichealth.net.au/id/hi/hpio/1.0').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: Organization.identifier.where(system = 'http://hl7.org.au/id/abn').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: Organization.type.exists()
      test script.setup.action.assert.warning only:
        value: false
  test script.test.action:
    index: 5
    test script.test.action.assert:
      test script.setup.action.assert.expression:
        value: Organization.name.exists()
      test script.setup.action.assert.warning only:
        value: false
  test script.test.action:
    index: 6
    test script.test.action.assert:
      test script.setup.action.assert.expression:
        value: Organization.telecom.exists()
      test script.setup.action.assert.warning only:
        value: false
  test script.test.action:
    index: 7
    test script.test.action.assert:
      test script.setup.action.assert.expression:
        value: Organization.telecom.system.exists()
      test script.setup.action.assert.warning only:
        value: false
  test script.test.action:
    index: 8
    test script.test.action.assert:
      test script.setup.action.assert.expression:
        value: Organization.telecom.value.exists()
      test script.setup.action.assert.warning only:
        value: false
  test script.test.action:
    index: 9
    test script.test.action.assert:
      test script.setup.action.assert.expression:
        value: Organization.address.exists()
      test script.setup.action.assert.warning only:
        value: false

value: read

value: search

value: search

value: read

index: 4
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: Organization
    test script.setup.action.operation.encode request url:
      value: true
    test script.setup.action.operation.params:
      value: /${organizationId}
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-organization
    test script.setup.action.assert.warning only:
      value: false