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-healthcareservice.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/jgsuess/au-core-tests/TestScript-au-core-healthcareservice.html
URLhttp://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-healthcareservice
Version0.1.0
Statusactive
Date2026-08-16T05:55:37+00:00
NameAUCoreHealthcareService
TitleAU Core HealthcareService — SHALL-level conformance
DescriptionCovers the AU Core HealthcareService (2.0.0) requirements: read, search by name/identifier/_id/service-type, must-support element presence, and profile conformance validation. Mirrors au-fhir-core-inferno's HealthcareServiceGroup (healthcare_service_read_test, healthcare_service_name_search_test, healthcare_service_identifier_search_test, healthcare_service_id_search_test, healthcare_service_service_type_search_test, healthcare_service_must_support_test, healthcare_service_validation_test). Per fhirfrog/au-core-compiler#10, all four search parameters named in that issue (name/identifier/_id/service-type) are exercised as individual single-parameter search tests even though Inferno labels only the name search as SHALL for this resource (identifier, _id and service-type are SHOULD) — HealthcareService is a small, mostly generic-CRUD profile, so this TestScript still keeps to the SHALL-level scope rationale from #6 by testing each search parameter once in isolation rather than replicating Inferno's SHOULD/MAY combinatorial and chained-search coverage. HealthcareService has no mandatory reference to Patient or any other resource, so the fixture below is fully self-contained.

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-healthcareservice

url: TestScript AU Core HealthcareService — SHALL-level conformance

version: 0.1.0

name: AUCoreHealthcareService

title: AU Core HealthcareService — 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 HealthcareService (2.0.0) requirements: read, search by name/identifier/_id/service-type, must-support element presence, and profile conformance validation. Mirrors au-fhir-core-inferno's HealthcareServiceGroup (healthcare_service_read_test, healthcare_service_name_search_test, healthcare_service_identifier_search_test, healthcare_service_id_search_test, healthcare_service_service_type_search_test, healthcare_service_must_support_test, healthcare_service_validation_test). Per fhirfrog/au-core-compiler#10, all four search parameters named in that issue (name/identifier/_id/service-type) are exercised as individual single-parameter search tests even though Inferno labels only the name search as SHALL for this resource (identifier, _id and service-type are SHOULD) — HealthcareService is a small, mostly generic-CRUD profile, so this TestScript still keeps to the SHALL-level scope rationale from #6 by testing each search parameter once in isolation rather than replicating Inferno's SHOULD/MAY combinatorial and chained-search coverage. HealthcareService has no mandatory reference to Patient or any other resource, so the fixture below is fully self-contained.

fixture

id

healthcareservice-fixture

autocreate: true

autodelete: true

resource: au-core-healthcareservice-conformant

Variables

-NamePathSourceId
*healthcareServiceIdHealthcareService.idhealthcareservice-fixture

test

name: Read

action

Operations

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

action

Asserts

-ResponseWarningOnly
*okayfalse

test

name: SearchByName

action

Operations

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

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

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

test

name: SearchByIdentifier

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)HealthcareServicetrue?identifier=http://pca.digitalhealth.gov.au/id/pca-healthcare-service|4d00ad2659cb4b54bd8028798af62631

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

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

test

name: SearchById

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)HealthcareServicetrue?_id=${healthcareServiceId}

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

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

test

name: SearchByServiceType

action

Operations

-TypeResourceEncodeRequestUrlParams
*Test script operation code: search (Search)HealthcareServicetrue?service-type=http://snomed.info/sct|722140001

action

Asserts

-ResponseWarningOnly
*okayfalse

action

Asserts

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

test

name: MustSupport

action

Operations

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

action

Asserts

-ExpressionWarningOnly
*HealthcareService.identifier.exists()false

action

Asserts

-ExpressionWarningOnly
*HealthcareService.type.exists()false

action

Asserts

-ExpressionWarningOnly
*HealthcareService.name.exists()false

action

Asserts

-ExpressionWarningOnly
*HealthcareService.telecom.exists()false

test

name: ProfileValidation

action

Operations

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

action

Asserts

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

Source1

{
  "resourceType": "TestScript",
  "id": "au-core-healthcareservice",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-healthcareservice",
  "version": "0.1.0",
  "name": "AUCoreHealthcareService",
  "title": "AU Core HealthcareService — 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 HealthcareService (2.0.0) requirements: read, search by name/identifier/_id/service-type, must-support element presence, and profile conformance validation. Mirrors au-fhir-core-inferno's HealthcareServiceGroup (healthcare_service_read_test, healthcare_service_name_search_test, healthcare_service_identifier_search_test, healthcare_service_id_search_test, healthcare_service_service_type_search_test, healthcare_service_must_support_test, healthcare_service_validation_test). Per fhirfrog/au-core-compiler#10, all four search parameters named in that issue (name/identifier/_id/service-type) are exercised as individual single-parameter search tests even though Inferno labels only the name search as SHALL for this resource (identifier, _id and service-type are SHOULD) — HealthcareService is a small, mostly generic-CRUD profile, so this TestScript still keeps to the SHALL-level scope rationale from #6 by testing each search parameter once in isolation rather than replicating Inferno's SHOULD/MAY combinatorial and chained-search coverage. HealthcareService has no mandatory reference to Patient or any other resource, so the fixture below is fully self-contained.",
  "fixture": [
    {
      "id": "healthcareservice-fixture",
      "autocreate": true,
      "autodelete": true,
      "resource": {
        "reference": "au-core-healthcareservice-conformant"
      }
    }
  ],
  "variable": [
    {
      "name": "healthcareServiceId",
      "path": "HealthcareService.id",
      "sourceId": "healthcareservice-fixture"
    }
  ],
  "test": [
    {
      "name": "Read",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "read"
            },
            "resource": "HealthcareService",
            "encodeRequestUrl": true,
            "params": "/${healthcareServiceId}"
          }
        },
        {
          "assert": {
            "response": "okay",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "SearchByName",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "search"
            },
            "resource": "HealthcareService",
            "encodeRequestUrl": true,
            "params": "?name=Frog"
          }
        },
        {
          "assert": {
            "response": "okay",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Bundle.entry.resource.ofType(HealthcareService).name.where($this.contains('Frog')).exists()",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "SearchByIdentifier",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "search"
            },
            "resource": "HealthcareService",
            "encodeRequestUrl": true,
            "params": "?identifier=http://pca.digitalhealth.gov.au/id/pca-healthcare-service|4d00ad2659cb4b54bd8028798af62631"
          }
        },
        {
          "assert": {
            "response": "okay",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Bundle.entry.resource.ofType(HealthcareService).name.where($this.contains('Frog')).exists()",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "SearchById",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "search"
            },
            "resource": "HealthcareService",
            "encodeRequestUrl": true,
            "params": "?_id=${healthcareServiceId}"
          }
        },
        {
          "assert": {
            "response": "okay",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Bundle.entry.resource.ofType(HealthcareService).name.where($this.contains('Frog')).exists()",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "SearchByServiceType",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "search"
            },
            "resource": "HealthcareService",
            "encodeRequestUrl": true,
            "params": "?service-type=http://snomed.info/sct|722140001"
          }
        },
        {
          "assert": {
            "response": "okay",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "Bundle.entry.resource.ofType(HealthcareService).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": "HealthcareService",
            "encodeRequestUrl": true,
            "params": "/${healthcareServiceId}"
          }
        },
        {
          "assert": {
            "expression": "HealthcareService.identifier.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "HealthcareService.type.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "HealthcareService.name.exists()",
            "warningOnly": false
          }
        },
        {
          "assert": {
            "expression": "HealthcareService.telecom.exists()",
            "warningOnly": false
          }
        }
      ]
    },
    {
      "name": "ProfileValidation",
      "action": [
        {
          "operation": {
            "type": {
              "system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code": "read"
            },
            "resource": "HealthcareService",
            "encodeRequestUrl": true,
            "params": "/${healthcareServiceId}"
          }
        },
        {
          "assert": {
            "validateProfileId": "http://hl7.org.au/fhir/core/StructureDefinition/au-core-healthcareservice",
            "warningOnly": false
          }
        }
      ]
    }
  ]
}