FHIR Frog AU Core Conformance Tests
0.1.0 - draft

FHIR Frog AU Core Conformance Tests, published by FHIR Frog. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/jgsuess/au-core-tests/ and changes regularly. See the Directory of published versions

AU Core Organization

AU Core Organization — SHALL-level conformance

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.

Name
AUCoreOrganization
URL
http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-organization
Status
active

Fixtures

  • organization-fixture: au-core-organization-conformant (created before, and removed after, the run)

Variables

  • ${organizationId} = Organization.id of organization-fixture

Read

  1. Read Organization by id (${organizationId}) READ Organization/${organizationId}
  2. Response status is okay response = okay

SearchByIdentifier

  1. Search Organization where identifier = http://ns.electronichealth.net.au/id/hi/hpio/1.0|8003620000000013 SEARCH Organization?identifier=http://ns.electronichealth.net.au/id/hi/hpio/1.0|8003620000000013
  2. Response status is okay response = okay
  3. Check: Bundle.entry.resource.ofType(Organization).name.where($this.contains('Frog')).exists() expression = Bundle.entry.resource.ofType(Organization).name.where($this.contains('Frog')).exists()

SearchByName

  1. Search Organization where name = Frog SEARCH Organization?name=Frog
  2. Response status is okay response = okay
  3. Check: Bundle.entry.resource.ofType(Organization).name.where($this.contains('Frog')).exists() expression = Bundle.entry.resource.ofType(Organization).name.where($this.contains('Frog')).exists()

MustSupport

  1. Read Organization by id (${organizationId}) READ Organization/${organizationId}
  2. Check: Organization.identifier.exists() expression = Organization.identifier.exists()
  3. Check: Organization.identifier.where(system = 'http://ns.electronichealth.net.au/id/hi/hpio/1.0').exists() expression = Organization.identifier.where(system = 'http://ns.electronichealth.net.au/id/hi/hpio/1.0').exists()
  4. Check: Organization.identifier.where(system = 'http://hl7.org.au/id/abn').exists() expression = Organization.identifier.where(system = 'http://hl7.org.au/id/abn').exists()
  5. Check: Organization.type.exists() expression = Organization.type.exists()
  6. Check: Organization.name.exists() expression = Organization.name.exists()
  7. Check: Organization.telecom.exists() expression = Organization.telecom.exists()
  8. Check: Organization.telecom.system.exists() expression = Organization.telecom.system.exists()
  9. Check: Organization.telecom.value.exists() expression = Organization.telecom.value.exists()
  10. Check: Organization.address.exists() expression = Organization.address.exists()

ProfileValidation

  1. Read Organization by id (${organizationId}) READ Organization/${organizationId}
  2. Validate the response against profile http://hl7.org.au/fhir/core/StructureDefinition/au-core-organization validateProfileId = http://hl7.org.au/fhir/core/StructureDefinition/au-core-organization