FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagefhirfrog.au-core-tests
Resource TypeTestScript
IdTestScript-au-core-organization.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/jgsuess/au-core-tests/TestScript-au-core-organization.html
URLhttp://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-organization
Version0.1.0
Statusactive
Date2026-08-16T05:55:37+00:00
NameAUCoreOrganization
TitleAU Core Organization — SHALL-level conformance
DescriptionCovers 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.

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

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

-NamePathSourceId
*organizationIdOrganization.idorganization-fixture

test

name: Read

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: read (Read)Organizationtrue/${organizationId}

action

Asserts

-ResponseWarningOnly
*okayfalse

test

name: SearchByIdentifier

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)Organizationtrue?identifier=http://ns.electronichealth.net.au/id/hi/hpio/1.0|8003620000000013

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

-ExpressionWarningOnly
*Bundle.entry.resource.ofType(Organization).name.where($this.contains('Frog')).exists()false

test

name: SearchByName

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)Organizationtrue?name=Frog

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

-ExpressionWarningOnly
*Bundle.entry.resource.ofType(Organization).name.where($this.contains('Frog')).exists()false

test

name: MustSupport

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: read (Read)Organizationtrue/${organizationId}

action

Asserts

-ExpressionWarningOnly
*Organization.identifier.exists()false

action

Asserts

-ExpressionWarningOnly
*Organization.identifier.where(system = 'http://ns.electronichealth.net.au/id/hi/hpio/1.0').exists()false

action

Asserts

-ExpressionWarningOnly
*Organization.identifier.where(system = 'http://hl7.org.au/id/abn').exists()false

action

Asserts

-ExpressionWarningOnly
*Organization.type.exists()false

action

Asserts

-ExpressionWarningOnly
*Organization.name.exists()false

action

Asserts

-ExpressionWarningOnly
*Organization.telecom.exists()false

action

Asserts

-ExpressionWarningOnly
*Organization.telecom.system.exists()false

action

Asserts

-ExpressionWarningOnly
*Organization.telecom.value.exists()false

action

Asserts

-ExpressionWarningOnly
*Organization.address.exists()false

test

name: ProfileValidation

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: read (Read)Organizationtrue/${organizationId}

action

Asserts

-ValidateProfileIdWarningOnly
*http://hl7.org.au/fhir/core/StructureDefinition/au-core-organizationfalse

Source1

{
  "resourceType": "TestScript",
  "id": "au-core-organization",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-organization",
  "version": "0.1.0",
  "name": "AUCoreOrganization",
  "title": "AU Core Organization — 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 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": {
        "reference": "au-core-organization-conformant"
      }
    }
  ],
  "variable": [
    {
      "name": "organizationId",
      "path": "Organization.id",
      "sourceId": "organization-fixture"
    }
  ],
  "test": [
    {
      "name": "Read",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "read"
            },
            "resource": "Organization",
            "encodeRequestUrl": true,
            "params": "/${organizationId}"
          }
        },
        {
          "assert": {
            "response": "okay",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "SearchByIdentifier",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "search"
            },
            "resource": "Organization",
            "encodeRequestUrl": true,
            "params": "?identifier=http://ns.electronichealth.net.au/id/hi/hpio/1.0|8003620000000013"
          }
        },
        {
          "assert": {
            "response": "okay",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Bundle.entry.resource.ofType(Organization).name.where($this.contains('Frog')).exists()",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "SearchByName",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "search"
            },
            "resource": "Organization",
            "encodeRequestUrl": true,
            "params": "?name=Frog"
          }
        },
        {
          "assert": {
            "response": "okay",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Bundle.entry.resource.ofType(Organization).name.where($this.contains('Frog')).exists()",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "MustSupport",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "read"
            },
            "resource": "Organization",
            "encodeRequestUrl": true,
            "params": "/${organizationId}"
          }
        },
        {
          "assert": {
            "expression": "Organization.identifier.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Organization.identifier.where(system = 'http://ns.electronichealth.net.au/id/hi/hpio/1.0').exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Organization.identifier.where(system = 'http://hl7.org.au/id/abn').exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Organization.type.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Organization.name.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Organization.telecom.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Organization.telecom.system.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Organization.telecom.value.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Organization.address.exists()",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "ProfileValidation",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "read"
            },
            "resource": "Organization",
            "encodeRequestUrl": true,
            "params": "/${organizationId}"
          }
        },
        {
          "assert": {
            "validateProfileId": "http://hl7.org.au/fhir/core/StructureDefinition/au-core-organization",
            "warningOnly": false
          }
        }
      ]
    }
  ]
}