STARS Implementation Guide
0.5.0 - release

STARS Implementation Guide - Downloaded Version 0.5.0 See the Directory of published versions

## Resource Profile: CSIRO STARS DiagnosticReport Profile

Official URL: https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/csiro-stars-diagnosticreport | Version: 0.5.0
Active as of 2025-09-08 | Computable Name: CsiroStarsDiagnosticReportProfile

Results returned through a Diagnostic Report

Usages:

- Examples for this Profile: DiagnosticReport/Example-ID

You can also check for usages in the FHIR IG Statistics

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DiagnosticReport | C | 0..* | DiagnosticReport | A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports Constraints: dgr-1
Slices for extension |  | 1..* | Extension | Extension Slice: Unordered, Open by value:url
extension:requisition | S | 1..1 | string | Requisition URL: https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/requisition
identifier | S Σ | 1..1 | Identifier | Business identifier for report
status | ?!S Σ | 1..1 | code | registered | partial | preliminary | modified | final | amended | corrected | appended | cancelled | entered-in-error | unknown Binding: DiagnosticReportStatus (required): The status of the diagnostic report.
code | Σ | 1..1 | CodeableConcept | Name/Code for this diagnostic report Binding: LOINCDiagnosticReportCodes (preferred): LOINC Codes for Diagnostic Reports Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
coding |  | 1..* | Coding | Code defined by a terminology system Fixed Value: (Complex)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
system |  | 1..1 | uri | Identity of the terminology system Fixed Value: http://loinc.org
version |  | 0..1 | string | Version of the system - if relevant
code |  | 1..1 | code | Symbol in syntax defined by the system Fixed Value: 11502-2
display |  | 1..1 | string | Representation defined by the system Fixed Value: Laboratory report
userSelected |  | 0..1 | boolean | If this coding was chosen directly by the user
text |  | 0..1 | string | Plain text representation of the concept
issued | S Σ | 1..1 | instant | DateTime this version was made
resultsInterpreter | S Σ | 1..1 | Reference(CSIRO STARS Practitioner Profile) | Primary result interpreter
result | C | 1..* | Reference(CSIRO STARS Observation Result Profile) | Observations
conclusion | S | 0..1 | markdown | Clinical conclusion (interpretation) of test results
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet / Code | URI
DiagnosticReport.status | required | DiagnosticReportStatus `http://hl7.org/fhir/ValueSet/diagnostic-report-status|5.0.0` From the FHIR Standard
DiagnosticReport.code | preferred | Pattern Value: LOINC Code 11502-2("Laboratory report") `http://hl7.org/fhir/ValueSet/report-codes` From the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dgr-1 | error | DiagnosticReport | When a Composition is referenced in `Diagnostic.composition`, all Observation resources referenced in `Composition.entry` must also be referenced in `Diagnostic.entry` or in the references Observations in `Observation.hasMember` : composition.exists() implies (composition.resolve().section.entry.reference.where(resolve() is Observation) in (result.reference|result.reference.resolve().hasMember.reference)) |
dom-2 | error | DiagnosticReport | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | DiagnosticReport | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | DiagnosticReport | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | DiagnosticReport | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | DiagnosticReport | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |

This structure is derived from DiagnosticReport

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DiagnosticReport |  | 0..* | DiagnosticReport | A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports
implicitRules |  | 0..0 |  |
language |  | 0..0 |  |
contained |  | 0..0 |  |
Slices for extension |  | 1..* | Extension | Extension Slice: Unordered, Open by value:url
extension:requisition | S | 1..1 | string | Requisition URL: https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/requisition
modifierExtension |  | 0..0 |  |
identifier | S | 1..1 | Identifier | Business identifier for report
status | S | 1..1 | code | registered | partial | preliminary | modified | final | amended | corrected | appended | cancelled | entered-in-error | unknown
category |  | 0..0 |  |
code |  | 1..1 | CodeableConcept | Name/Code for this diagnostic report Required Pattern: At least the following
coding |  | 1..* | Coding | Code defined by a terminology system Fixed Value: (Complex)
system |  | 1..1 | uri | Identity of the terminology system Fixed Value: http://loinc.org
code |  | 1..1 | code | Symbol in syntax defined by the system Fixed Value: 11502-2
display |  | 1..1 | string | Representation defined by the system Fixed Value: Laboratory report
subject |  | 0..0 |  |
encounter |  | 0..0 |  |
effective[x] |  | 0..0 |  |
issued | S | 1..1 | instant | DateTime this version was made
performer |  | 0..0 |  |
resultsInterpreter | S | 1..1 | Reference(CSIRO STARS Practitioner Profile) | Primary result interpreter
result |  | 1..* | Reference(CSIRO STARS Observation Result Profile) | Observations
study |  | 0..0 |  |
conclusion | S | 0..1 | markdown | Clinical conclusion (interpretation) of test results
conclusionCode |  | 0..0 |  |
presentedForm |  | 0..0 |  |
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DiagnosticReport | C | 0..* | DiagnosticReport | A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports Constraints: dgr-1
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
Slices for extension |  | 1..* | Extension | Extension Slice: Unordered, Open by value:url
extension:requisition | S | 1..1 | string | Requisition URL: https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/requisition
identifier | S Σ | 1..1 | Identifier | Business identifier for report
basedOn |  | 0..* | Reference(CarePlan | ImmunizationRecommendation | MedicationRequest | NutritionOrder | ServiceRequest) | What was requested
status | ?!S Σ | 1..1 | code | registered | partial | preliminary | modified | final | amended | corrected | appended | cancelled | entered-in-error | unknown Binding: DiagnosticReportStatus (required): The status of the diagnostic report.
code | Σ | 1..1 | CodeableConcept | Name/Code for this diagnostic report Binding: LOINCDiagnosticReportCodes (preferred): LOINC Codes for Diagnostic Reports Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
coding |  | 1..* | Coding | Code defined by a terminology system Fixed Value: (Complex)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
system |  | 1..1 | uri | Identity of the terminology system Fixed Value: http://loinc.org
version |  | 0..1 | string | Version of the system - if relevant
code |  | 1..1 | code | Symbol in syntax defined by the system Fixed Value: 11502-2
display |  | 1..1 | string | Representation defined by the system Fixed Value: Laboratory report
userSelected |  | 0..1 | boolean | If this coding was chosen directly by the user
text |  | 0..1 | string | Plain text representation of the concept
issued | S Σ | 1..1 | instant | DateTime this version was made
resultsInterpreter | S Σ | 1..1 | Reference(CSIRO STARS Practitioner Profile) | Primary result interpreter
specimen |  | 0..* | Reference(Specimen) | Specimens this report is based on
result | C | 1..* | Reference(CSIRO STARS Observation Result Profile) | Observations
note |  | 0..* | Annotation | Comments about the diagnostic report
supportingInfo |  | 0..* | BackboneElement | Additional information supporting the diagnostic report
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
type |  | 1..1 | CodeableConcept | Supporting information role code Binding: hl7VS-VS-observationType (example): The code value for the role of the supporting information in the diagnostic report.
reference |  | 1..1 | Reference(Procedure | Observation | DiagnosticReport | Citation) | Supporting information reference
media | Σ | 0..* | BackboneElement | Key images or data associated with this report
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
comment |  | 0..1 | string | Comment about the image or data (e.g. explanation)
link | Σ | 1..1 | Reference(DocumentReference) | Reference to the image or data source
composition | C | 0..1 | Reference(Composition) | Reference to a Composition resource for the DiagnosticReport structure
conclusion | S | 0..1 | markdown | Clinical conclusion (interpretation) of test results
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet / Code | URI
DiagnosticReport.status | required | DiagnosticReportStatus `http://hl7.org/fhir/ValueSet/diagnostic-report-status|5.0.0` From the FHIR Standard
DiagnosticReport.code | preferred | Pattern Value: LOINC Code 11502-2("Laboratory report") `http://hl7.org/fhir/ValueSet/report-codes` From the FHIR Standard
DiagnosticReport.supportingInfo.type | example | Hl7VSVSObservationType `http://terminology.hl7.org/ValueSet/v2-0936`

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dgr-1 | error | DiagnosticReport | When a Composition is referenced in `Diagnostic.composition`, all Observation resources referenced in `Composition.entry` must also be referenced in `Diagnostic.entry` or in the references Observations in `Observation.hasMember` : composition.exists() implies (composition.resolve().section.entry.reference.where(resolve() is Observation) in (result.reference|result.reference.resolve().hasMember.reference)) |
dom-2 | error | DiagnosticReport | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | DiagnosticReport | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | DiagnosticReport | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | DiagnosticReport | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | DiagnosticReport | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |

This structure is derived from DiagnosticReport

Summary

Mandatory: 6 elements
Must-Support: 6 elements
Prohibited: 12 elements

Structures

This structure refers to these other structures:

- CSIRO STARS Practitioner Profile (https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/csiro-stars-practitioner)
- CSIRO STARS Observation Result Profile (https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/csiro-stars-observation-result)

Extensions

This structure refers to these extensions:

- https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/requisition

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DiagnosticReport | C | 0..* | DiagnosticReport | A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports Constraints: dgr-1
Slices for extension |  | 1..* | Extension | Extension Slice: Unordered, Open by value:url
extension:requisition | S | 1..1 | string | Requisition URL: https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/requisition
identifier | S Σ | 1..1 | Identifier | Business identifier for report
status | ?!S Σ | 1..1 | code | registered | partial | preliminary | modified | final | amended | corrected | appended | cancelled | entered-in-error | unknown Binding: DiagnosticReportStatus (required): The status of the diagnostic report.
code | Σ | 1..1 | CodeableConcept | Name/Code for this diagnostic report Binding: LOINCDiagnosticReportCodes (preferred): LOINC Codes for Diagnostic Reports Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
coding |  | 1..* | Coding | Code defined by a terminology system Fixed Value: (Complex)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
system |  | 1..1 | uri | Identity of the terminology system Fixed Value: http://loinc.org
version |  | 0..1 | string | Version of the system - if relevant
code |  | 1..1 | code | Symbol in syntax defined by the system Fixed Value: 11502-2
display |  | 1..1 | string | Representation defined by the system Fixed Value: Laboratory report
userSelected |  | 0..1 | boolean | If this coding was chosen directly by the user
text |  | 0..1 | string | Plain text representation of the concept
issued | S Σ | 1..1 | instant | DateTime this version was made
resultsInterpreter | S Σ | 1..1 | Reference(CSIRO STARS Practitioner Profile) | Primary result interpreter
result | C | 1..* | Reference(CSIRO STARS Observation Result Profile) | Observations
conclusion | S | 0..1 | markdown | Clinical conclusion (interpretation) of test results
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet / Code | URI
DiagnosticReport.status | required | DiagnosticReportStatus `http://hl7.org/fhir/ValueSet/diagnostic-report-status|5.0.0` From the FHIR Standard
DiagnosticReport.code | preferred | Pattern Value: LOINC Code 11502-2("Laboratory report") `http://hl7.org/fhir/ValueSet/report-codes` From the FHIR Standard

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dgr-1 | error | DiagnosticReport | When a Composition is referenced in `Diagnostic.composition`, all Observation resources referenced in `Composition.entry` must also be referenced in `Diagnostic.entry` or in the references Observations in `Observation.hasMember` : composition.exists() implies (composition.resolve().section.entry.reference.where(resolve() is Observation) in (result.reference|result.reference.resolve().hasMember.reference)) |
dom-2 | error | DiagnosticReport | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | DiagnosticReport | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | DiagnosticReport | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | DiagnosticReport | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | DiagnosticReport | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |

Differential View

This structure is derived from DiagnosticReport

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DiagnosticReport |  | 0..* | DiagnosticReport | A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports
implicitRules |  | 0..0 |  |
language |  | 0..0 |  |
contained |  | 0..0 |  |
Slices for extension |  | 1..* | Extension | Extension Slice: Unordered, Open by value:url
extension:requisition | S | 1..1 | string | Requisition URL: https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/requisition
modifierExtension |  | 0..0 |  |
identifier | S | 1..1 | Identifier | Business identifier for report
status | S | 1..1 | code | registered | partial | preliminary | modified | final | amended | corrected | appended | cancelled | entered-in-error | unknown
category |  | 0..0 |  |
code |  | 1..1 | CodeableConcept | Name/Code for this diagnostic report Required Pattern: At least the following
coding |  | 1..* | Coding | Code defined by a terminology system Fixed Value: (Complex)
system |  | 1..1 | uri | Identity of the terminology system Fixed Value: http://loinc.org
code |  | 1..1 | code | Symbol in syntax defined by the system Fixed Value: 11502-2
display |  | 1..1 | string | Representation defined by the system Fixed Value: Laboratory report
subject |  | 0..0 |  |
encounter |  | 0..0 |  |
effective[x] |  | 0..0 |  |
issued | S | 1..1 | instant | DateTime this version was made
performer |  | 0..0 |  |
resultsInterpreter | S | 1..1 | Reference(CSIRO STARS Practitioner Profile) | Primary result interpreter
result |  | 1..* | Reference(CSIRO STARS Observation Result Profile) | Observations
study |  | 0..0 |  |
conclusion | S | 0..1 | markdown | Clinical conclusion (interpretation) of test results
conclusionCode |  | 0..0 |  |
presentedForm |  | 0..0 |  |
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
DiagnosticReport | C | 0..* | DiagnosticReport | A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports Constraints: dgr-1
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
Slices for extension |  | 1..* | Extension | Extension Slice: Unordered, Open by value:url
extension:requisition | S | 1..1 | string | Requisition URL: https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/requisition
identifier | S Σ | 1..1 | Identifier | Business identifier for report
basedOn |  | 0..* | Reference(CarePlan | ImmunizationRecommendation | MedicationRequest | NutritionOrder | ServiceRequest) | What was requested
status | ?!S Σ | 1..1 | code | registered | partial | preliminary | modified | final | amended | corrected | appended | cancelled | entered-in-error | unknown Binding: DiagnosticReportStatus (required): The status of the diagnostic report.
code | Σ | 1..1 | CodeableConcept | Name/Code for this diagnostic report Binding: LOINCDiagnosticReportCodes (preferred): LOINC Codes for Diagnostic Reports Required Pattern: At least the following
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
coding |  | 1..* | Coding | Code defined by a terminology system Fixed Value: (Complex)
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
system |  | 1..1 | uri | Identity of the terminology system Fixed Value: http://loinc.org
version |  | 0..1 | string | Version of the system - if relevant
code |  | 1..1 | code | Symbol in syntax defined by the system Fixed Value: 11502-2
display |  | 1..1 | string | Representation defined by the system Fixed Value: Laboratory report
userSelected |  | 0..1 | boolean | If this coding was chosen directly by the user
text |  | 0..1 | string | Plain text representation of the concept
issued | S Σ | 1..1 | instant | DateTime this version was made
resultsInterpreter | S Σ | 1..1 | Reference(CSIRO STARS Practitioner Profile) | Primary result interpreter
specimen |  | 0..* | Reference(Specimen) | Specimens this report is based on
result | C | 1..* | Reference(CSIRO STARS Observation Result Profile) | Observations
note |  | 0..* | Annotation | Comments about the diagnostic report
supportingInfo |  | 0..* | BackboneElement | Additional information supporting the diagnostic report
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
type |  | 1..1 | CodeableConcept | Supporting information role code Binding: hl7VS-VS-observationType (example): The code value for the role of the supporting information in the diagnostic report.
reference |  | 1..1 | Reference(Procedure | Observation | DiagnosticReport | Citation) | Supporting information reference
media | Σ | 0..* | BackboneElement | Key images or data associated with this report
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
comment |  | 0..1 | string | Comment about the image or data (e.g. explanation)
link | Σ | 1..1 | Reference(DocumentReference) | Reference to the image or data source
composition | C | 0..1 | Reference(Composition) | Reference to a Composition resource for the DiagnosticReport structure
conclusion | S | 0..1 | markdown | Clinical conclusion (interpretation) of test results
Documentation for this format

#### Terminology Bindings

Path | Conformance | ValueSet / Code | URI
DiagnosticReport.status | required | DiagnosticReportStatus `http://hl7.org/fhir/ValueSet/diagnostic-report-status|5.0.0` From the FHIR Standard
DiagnosticReport.code | preferred | Pattern Value: LOINC Code 11502-2("Laboratory report") `http://hl7.org/fhir/ValueSet/report-codes` From the FHIR Standard
DiagnosticReport.supportingInfo.type | example | Hl7VSVSObservationType `http://terminology.hl7.org/ValueSet/v2-0936`

#### Constraints

Id | Grade | Path(s) | Details | Requirements
dgr-1 | error | DiagnosticReport | When a Composition is referenced in `Diagnostic.composition`, all Observation resources referenced in `Composition.entry` must also be referenced in `Diagnostic.entry` or in the references Observations in `Observation.hasMember` : composition.exists() implies (composition.resolve().section.entry.reference.where(resolve() is Observation) in (result.reference|result.reference.resolve().hasMember.reference)) |
dom-2 | error | DiagnosticReport | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() |
dom-3 | error | DiagnosticReport | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty() |
dom-4 | error | DiagnosticReport | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() |
dom-5 | error | DiagnosticReport | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() |
dom-6 | best practice | DiagnosticReport | A resource should have narrative for robust management : text.`div`.exists() |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |

This structure is derived from DiagnosticReport

Summary

Mandatory: 6 elements
Must-Support: 6 elements
Prohibited: 12 elements

Structures

This structure refers to these other structures:

- CSIRO STARS Practitioner Profile (https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/csiro-stars-practitioner)
- CSIRO STARS Observation Result Profile (https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/csiro-stars-observation-result)

Extensions

This structure refers to these extensions:

- https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/requisition

Other representations of profile: CSV, Excel, Schematron