{
  "resourceType": "StructureDefinition",
  "id": "au-diagnosticreport",
  "url": "http://hl7.org.au/fhir/StructureDefinition/au-diagnosticreport",
  "version": "1.1.0",
  "name": "AUBaseDiagnosticReport",
  "title": "AU Base Diagnostic Report",
  "status": "draft",
  "date": "2019-06-23T23:07:00+00:00",
  "publisher": "Health Level Seven Australia (Orders and Observations WG)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org.au/fhir",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This profile defines a diagnostic report structure that includes core localisation concepts for use in an Australian context.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport",
        "path": "DiagnosticReport",
        "short": "A diagnostic report in an Australian healthcare context",
        "constraint": [
          {
            "key": "inv-diagrep-0",
            "severity": "error",
            "human": "Additional category shall not be present if a category is absent",
            "expression": "DiagnosticReport.category.empty() implies DiagnosticReport.extension('http://hl7.org.au/fhir/StructureDefinition/category-additional').empty()"
          }
        ]
      },
      {
        "id": "DiagnosticReport.extension:performerParty",
        "path": "DiagnosticReport.extension",
        "sliceName": "performerParty",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org.au/fhir/StructureDefinition/performer-party"
          }
        ]
      },
      {
        "id": "DiagnosticReport.extension:categoryAdditional",
        "path": "DiagnosticReport.extension",
        "sliceName": "categoryAdditional",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org.au/fhir/StructureDefinition/category-additional"
          }
        ]
      },
      {
        "id": "DiagnosticReport.identifier",
        "path": "DiagnosticReport.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "type"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DiagnosticReport.identifier:fillerIdentifier",
        "path": "DiagnosticReport.identifier",
        "sliceName": "fillerIdentifier",
        "short": "Filler report identifier",
        "definition": "A Report Identifier is a unique identifier for each report. It must uniquely identify the report from all other reports in a particular source system (e.g. diagnostic Imaging system, clinical laboratory system). This uniqueness must persist over time. This Report Identifier is the same concept as the Filler Order Number in the HL7 V2 specifications. In some laboratory systems, the Report Identifier may be a concatenation of a Lab Number and Report panel code (e.g. 19P123456-FBC), where the panel code makes the identifier unique from other reports under the same Lab Number. In diagnostic imaging and some pathology systems, the report identifier may be called an accession number as long as there is only a single accession number per report."
      },
      {
        "id": "DiagnosticReport.identifier:fillerIdentifier.type",
        "path": "DiagnosticReport.identifier.type",
        "min": 1,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "IdentifierType"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean": true
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"
          }
        }
      },
      {
        "id": "DiagnosticReport.identifier:fillerIdentifier.type.coding",
        "path": "DiagnosticReport.identifier.type.coding",
        "min": 1,
        "max": "1",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/identifier-type",
              "code": "FILL"
            }
          ]
        }
      },
      {
        "id": "DiagnosticReport.identifier:fillerIdentifier.system",
        "path": "DiagnosticReport.identifier.system",
        "short": "Filler identifier system namespace",
        "min": 1
      },
      {
        "id": "DiagnosticReport.identifier:fillerIdentifier.value",
        "path": "DiagnosticReport.identifier.value",
        "short": "Filler identifier",
        "min": 1
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "binding": {
          "strength": "preferred",
          "valueSetUri": "http://hl7.org/fhir/ValueSet/diagnostic-service-sections"
        }
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code"
      },
      {
        "id": "DiagnosticReport.code.coding",
        "path": "DiagnosticReport.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            },
            {
              "type": "value",
              "path": "code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DiagnosticReport.code.coding:snomedImagingProcedures",
        "path": "DiagnosticReport.code.coding",
        "sliceName": "snomedImagingProcedures",
        "short": "Diagnostic Imaging Procedures (SNOMED CT)",
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSetUri": "https://healthterminologies.gov.au/fhir/ValueSet/imaging-procedure-1"
        }
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "max": "1"
      },
      {
        "id": "DiagnosticReport.performer.role",
        "path": "DiagnosticReport.performer.role"
      },
      {
        "id": "DiagnosticReport.performer.role.coding",
        "path": "DiagnosticReport.performer.role.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DiagnosticReport.performer.role.coding:anzscoRole",
        "path": "DiagnosticReport.performer.role.coding",
        "sliceName": "anzscoRole",
        "short": "Australian and New Zealand Standard Classification of Occupations",
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSetUri": "https://healthterminologies.gov.au/fhir/ValueSet/anzsco-1"
        }
      },
      {
        "id": "DiagnosticReport.performer.role.coding:snomedRole",
        "path": "DiagnosticReport.performer.role.coding",
        "sliceName": "snomedRole",
        "short": "Practitioner Role (SNOMED CT)",
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSetUri": "https://healthterminologies.gov.au/fhir/ValueSet/practitioner-role-1"
        }
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/StructureDefinition/au-specimen"
          }
        ]
      },
      {
        "id": "DiagnosticReport.codedDiagnosis",
        "path": "DiagnosticReport.codedDiagnosis"
      },
      {
        "id": "DiagnosticReport.codedDiagnosis.coding",
        "path": "DiagnosticReport.codedDiagnosis.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DiagnosticReport.codedDiagnosis.coding:snomedFinding",
        "path": "DiagnosticReport.codedDiagnosis.coding",
        "sliceName": "snomedFinding",
        "short": "Clinical Finding (SNOMED CT)",
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "Clinical Finding (SNOMED CT)",
          "valueSetUri": "https://healthterminologies.gov.au/fhir/ValueSet/clinical-finding-1"
        }
      }
    ]
  }
}