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 RelatedPerson — SHALL-level conformance - JSON Representation

Active as of 2026-08-16

Raw json | Download

{
  "resourceType" : "TestScript",
  "id" : "au-core-relatedperson",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: TestScript au-core-relatedperson</b></p><a name=\"au-core-relatedperson\"> </a><a name=\"hcau-core-relatedperson\"> </a><p><b>url</b>: <a href=\"TestScript-au-core-relatedperson.html\">TestScript AU Core RelatedPerson — SHALL-level conformance</a></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: AUCoreRelatedPerson</p><p><b>title</b>: AU Core RelatedPerson — SHALL-level conformance</p><p><b>status</b>: Active</p><p><b>date</b>: 2026-08-16 05:55:37+0000</p><p><b>publisher</b>: FHIR Frog</p><p><b>contact</b>: FHIR Frog: <a href=\"https://gitlab.com/fhirfrog\">https://gitlab.com/fhirfrog</a></p><p><b>description</b>: </p><div><p>Covers the AU Core RelatedPerson (2.0.0) requirements identified in fhirfrog/au-core-compiler#20: read, search by patient (SHALL), search by _id/name/relationship (SHOULD/MAY, included per the issue's explicit call-out of all four params — see fhirfrog/au-core-compiler#17 for the equivalent Practitioner-level precedent of including SHOULD/MAY searches when an issue names them), must-support element presence (patient, relationship, name+use/text/family/given, telecom, address), and profile conformance validation. Mirrors au-fhir-core-inferno's RelatedPersonGroup (related_person_patient_search_test, related_person__id_search_test, related_person_name_search_test, related_person_relationship_search_test, related_person_read_test, related_person_validation_test, related_person_must_support_test); the patient+name and patient+relationship combinator variants and reference-resolution test are not replicated — see fhirfrog/au-core-compiler#6 for the general scope rationale. No obligation-extension or negative-testing complexity is exercised here (unlike fhirfrog/au-core-compiler#21/#22): plain must-support presence checks are sufficient per issue #20's own scoping.</p>\n</div><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>relatedperson-patient-fixture</blockquote><p><b>autocreate</b>: true</p><p><b>autodelete</b>: true</p><p><b>resource</b>: <code>au-core-relatedperson-patient</code></p></blockquote><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>relatedperson-fixture</blockquote><p><b>autocreate</b>: true</p><p><b>autodelete</b>: true</p><p><b>resource</b>: <code>au-core-relatedperson-conformant</code></p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: relatedPersonId</p><p><b>path</b>: RelatedPerson.id</p><p><b>sourceId</b>: relatedperson-fixture</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: patientId</p><p><b>path</b>: Patient.id</p><p><b>sourceId</b>: relatedperson-patient-fixture</p></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: Read</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-read\">Test script operation code: read</a> (Read)</td><td>RelatedPerson</td><td>true</td><td>/${relatedPersonId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>okay</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: SearchByPatient</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-search\">Test script operation code: search</a> (Search)</td><td>RelatedPerson</td><td>true</td><td>?patient=Patient/${patientId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>okay</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists()</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: SearchById</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-search\">Test script operation code: search</a> (Search)</td><td>RelatedPerson</td><td>true</td><td>?_id=${relatedPersonId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>okay</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists()</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: SearchByName</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-search\">Test script operation code: search</a> (Search)</td><td>RelatedPerson</td><td>true</td><td>?name=Banks</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>okay</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists()</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: SearchByRelationship</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-search\">Test script operation code: search</a> (Search)</td><td>RelatedPerson</td><td>true</td><td>?relationship=http://terminology.hl7.org/CodeSystem/v3-RoleCode|FTH</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>okay</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Bundle.entry.resource.ofType(RelatedPerson).relationship.coding.code.where($this = 'FTH').exists()</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: MustSupport</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-read\">Test script operation code: read</a> (Read)</td><td>RelatedPerson</td><td>true</td><td>/${relatedPersonId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>RelatedPerson.patient.exists()</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>RelatedPerson.relationship.exists()</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>RelatedPerson.name.exists()</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>RelatedPerson.name.use.exists()</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>RelatedPerson.name.text.exists()</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>RelatedPerson.name.family.exists()</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>RelatedPerson.name.given.exists()</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>RelatedPerson.telecom.exists()</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>RelatedPerson.address.exists()</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: ProfileValidation</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.3.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-read\">Test script operation code: read</a> (Read)</td><td>RelatedPerson</td><td>true</td><td>/${relatedPersonId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ValidateProfileId</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>http://hl7.org.au/fhir/core/StructureDefinition/au-core-relatedperson</td><td>false</td></tr></table></blockquote></blockquote></div>"
  },
  "url" : "http://fhirfrog.org/fhir/au-core-tests/TestScript/au-core-relatedperson",
  "version" : "0.1.0",
  "name" : "AUCoreRelatedPerson",
  "title" : "AU Core RelatedPerson — 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 RelatedPerson (2.0.0) requirements identified in fhirfrog/au-core-compiler#20: read, search by patient (SHALL), search by _id/name/relationship (SHOULD/MAY, included per the issue's explicit call-out of all four params — see fhirfrog/au-core-compiler#17 for the equivalent Practitioner-level precedent of including SHOULD/MAY searches when an issue names them), must-support element presence (patient, relationship, name+use/text/family/given, telecom, address), and profile conformance validation. Mirrors au-fhir-core-inferno's RelatedPersonGroup (related_person_patient_search_test, related_person__id_search_test, related_person_name_search_test, related_person_relationship_search_test, related_person_read_test, related_person_validation_test, related_person_must_support_test); the patient+name and patient+relationship combinator variants and reference-resolution test are not replicated — see fhirfrog/au-core-compiler#6 for the general scope rationale. No obligation-extension or negative-testing complexity is exercised here (unlike fhirfrog/au-core-compiler#21/#22): plain must-support presence checks are sufficient per issue #20's own scoping.",
  "fixture" : [
    {
      "id" : "relatedperson-patient-fixture",
      "autocreate" : true,
      "autodelete" : true,
      "resource" : {
        "reference" : "au-core-relatedperson-patient"
      }
    },
    {
      "id" : "relatedperson-fixture",
      "autocreate" : true,
      "autodelete" : true,
      "resource" : {
        "reference" : "au-core-relatedperson-conformant"
      }
    }
  ],
  "variable" : [
    {
      "name" : "relatedPersonId",
      "path" : "RelatedPerson.id",
      "sourceId" : "relatedperson-fixture"
    },
    {
      "name" : "patientId",
      "path" : "Patient.id",
      "sourceId" : "relatedperson-patient-fixture"
    }
  ],
  "test" : [
    {
      "name" : "Read",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "RelatedPerson",
            "encodeRequestUrl" : true,
            "params" : "/${relatedPersonId}"
          }
        },
        {
          "assert" : {
            "response" : "okay",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "SearchByPatient",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "RelatedPerson",
            "encodeRequestUrl" : true,
            "params" : "?patient=Patient/${patientId}"
          }
        },
        {
          "assert" : {
            "response" : "okay",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists()",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "SearchById",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "RelatedPerson",
            "encodeRequestUrl" : true,
            "params" : "?_id=${relatedPersonId}"
          }
        },
        {
          "assert" : {
            "response" : "okay",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists()",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "SearchByName",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "RelatedPerson",
            "encodeRequestUrl" : true,
            "params" : "?name=Banks"
          }
        },
        {
          "assert" : {
            "response" : "okay",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Bundle.entry.resource.ofType(RelatedPerson).name.family.where($this = 'Banks').exists()",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "SearchByRelationship",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "search"
            },
            "resource" : "RelatedPerson",
            "encodeRequestUrl" : true,
            "params" : "?relationship=http://terminology.hl7.org/CodeSystem/v3-RoleCode|FTH"
          }
        },
        {
          "assert" : {
            "response" : "okay",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "Bundle.entry.resource.ofType(RelatedPerson).relationship.coding.code.where($this = 'FTH').exists()",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "MustSupport",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "RelatedPerson",
            "encodeRequestUrl" : true,
            "params" : "/${relatedPersonId}"
          }
        },
        {
          "assert" : {
            "expression" : "RelatedPerson.patient.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "RelatedPerson.relationship.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "RelatedPerson.name.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "RelatedPerson.name.use.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "RelatedPerson.name.text.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "RelatedPerson.name.family.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "RelatedPerson.name.given.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "RelatedPerson.telecom.exists()",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "expression" : "RelatedPerson.address.exists()",
            "warningOnly" : false
          }
        }
      ]
    },
    {
      "name" : "ProfileValidation",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "read"
            },
            "resource" : "RelatedPerson",
            "encodeRequestUrl" : true,
            "params" : "/${relatedPersonId}"
          }
        },
        {
          "assert" : {
            "validateProfileId" : "http://hl7.org.au/fhir/core/StructureDefinition/au-core-relatedperson",
            "warningOnly" : false
          }
        }
      ]
    }
  ]
}