HL7 FHIR Implementation Guide Laboratory Report
0.2.0 - trial-use

HL7 FHIR Implementation Guide Laboratory Report, published by HL7 Italia. This guide is not an authorized publication; it is the continuous build for version 0.2.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/hl7-it/lab-report/ and changes regularly. See the Directory of published versions

## Resource Profile: Media - Lab Report

Official URL: http://hl7.it/fhir/lab-report/StructureDefinition/media-it-lab | Version: 0.2.0
Standards status: Trial-use | Maturity Level: 1 | Computable Name: MediaRefertoLabIt

Descrizione dei contenuti multimediali tramite il profilo della risorsa Media per il referto di laboratorio.

Questa risorsa viene utilizzata per illustrare i contenuti multimediali legati al Referto di Laboratorio.

Usages:

- Use this Profile: Bundle - Lab Report
- Refer to this Profile: DiagnosticReport - Lab Report and Observation - Lab Report
- Examples for this Profile: Media/059927b1-7e17-409e-ae60-68cc3c0b3aea

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
--- | --- | --- | --- | ---
Media |  | 0..* | Media | Media Referto di Laboratorio
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
status | ?!Σ | 1..1 | code | Stato del valore del risultato. Binding: EventStatus (required): Codes identifying the lifecycle stage of an event.
type | Σ | 0..1 | CodeableConcept | Descrizione attributo: Tipo di contenuto multimediale. Possibili valori: image | video | audio Binding: MediaType (required)
subject | Σ | 1..1 | Reference(Patient - Lab Report) | Reference al soggetto del file multimediali.
reference | Σ C | 1..1 | string | Reference Literal, Relative, URL interno o assoluto.
operator | Σ | 0..1 | Reference(Practitioner - Lab Report | PractitionerRole - Lab Report | Organization - Lab Report | CareTeam | Patient - Lab Report | Device - Lab Report | RelatedPerson) | Operatore che ha generato il contenuto multimediale.
device | Σ | 0..1 | Reference(Device - Lab Report) | Dispositivo utilizzato per raccogliere i file multimediali.
content | Σ | 1..1 | Attachment | Contenuto multimediale.
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Media.status | Base | required | EventStatus | 📍4.0.1 | FHIR Std.
Media.type | Base | required | Media Type | 📦4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Media | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Media | 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().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Media | 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 | Media | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Media | 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 Media

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Media |  | 0..* | Media | Media Referto di Laboratorio
status |  | 1..1 | code | Stato del valore del risultato.
type |  | 0..1 | CodeableConcept | Descrizione attributo: Tipo di contenuto multimediale. Possibili valori: image | video | audio Binding: MediaType (required)
subject |  | 1..1 | Reference(Patient - Lab Report) | Reference al soggetto del file multimediali.
reference |  | 1..1 | string | Reference Literal, Relative, URL interno o assoluto.
operator |  | 0..1 | Reference(Practitioner - Lab Report | PractitionerRole - Lab Report | Organization - Lab Report | CareTeam | Patient - Lab Report | Device - Lab Report | RelatedPerson) | Operatore che ha generato il contenuto multimediale.
device |  | 0..1 | Reference(Device - Lab Report) | Dispositivo utilizzato per raccogliere i file multimediali.
content |  | 1..1 | Attachment | Contenuto multimediale.
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
Media.type | Base | required | Media Type | 📦4.0.1 | FHIR Std.

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Media |  | 0..* | Media | Media Referto di Laboratorio
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
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
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | Identifier(s) for the image
basedOn | Σ | 0..* | Reference(ServiceRequest | CarePlan) | Procedure that caused this media to be created
partOf | Σ | 0..* | Reference(Resource) | Part of referenced event
status | ?!Σ | 1..1 | code | Stato del valore del risultato. Binding: EventStatus (required): Codes identifying the lifecycle stage of an event.
type | Σ | 0..1 | CodeableConcept | Descrizione attributo: Tipo di contenuto multimediale. Possibili valori: image | video | audio Binding: MediaType (required)
modality | Σ | 0..1 | CodeableConcept | The type of acquisition equipment/process Binding: MediaModality (example): Detailed information about the type of the image - its kind, purpose, or the kind of equipment used to generate it.
view | Σ | 0..1 | CodeableConcept | Imaging view, e.g. Lateral or Antero-posterior Binding: MediaCollectionView/Projection (example): Imaging view (projection) used when collecting an image.
subject | Σ | 1..1 | Reference(Patient - Lab Report) | Reference al soggetto del file multimediali.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | Σ C | 1..1 | string | Reference Literal, Relative, URL interno o assoluto.
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
encounter | Σ | 0..1 | Reference(Encounter) | Encounter associated with media
created[x] | Σ | 0..1 |  | When Media was collected
createdDateTime |  |  | dateTime |
createdPeriod |  |  | Period |
issued | Σ | 0..1 | instant | Date/Time this version was made available
operator | Σ | 0..1 | Reference(Practitioner - Lab Report | PractitionerRole - Lab Report | Organization - Lab Report | CareTeam | Patient - Lab Report | Device - Lab Report | RelatedPerson) | Operatore che ha generato il contenuto multimediale.
reasonCode | Σ | 0..* | CodeableConcept | Why was event performed? Binding: ProcedureReasonCodes (example): The reason for the media.
bodySite | Σ | 0..1 | CodeableConcept | Observed body part Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
deviceName | Σ | 0..1 | string | Name of the device/manufacturer
device | Σ | 0..1 | Reference(Device - Lab Report) | Dispositivo utilizzato per raccogliere i file multimediali.
height | Σ | 0..1 | positiveInt | Height of the image in pixels (photo/video)
width | Σ | 0..1 | positiveInt | Width of the image in pixels (photo/video)
frames | Σ | 0..1 | positiveInt | Number of frames if > 1 (photo)
duration | Σ | 0..1 | decimal | Length in seconds (audio / video)
content | Σ | 1..1 | Attachment | Contenuto multimediale.
note |  | 0..* | Annotation | Comments made about the media
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Media.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std.
Media.status | Base | required | EventStatus | 📍4.0.1 | FHIR Std.
Media.type | Base | required | Media Type | 📦4.0.1 | FHIR Std.
Media.modality | Base | example | Media Modality | 📍4.0.1 | FHIR Std.
Media.view | Base | example | Media Collection View/Projection | 📍4.0.1 | FHIR Std.
Media.subject.type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
Media.reasonCode | Base | example | Procedure Reason Codes | 📍4.0.1 | FHIR Std.
Media.bodySite | Base | example | SNOMED CT Body Structures | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Media | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Media | 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().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Media | 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 | Media | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Media | 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 Media

Summary

Mandatory: 2 elements

Structures

This structure refers to these other structures:

- Patient - Lab Report (http://hl7.it/fhir/lab-report/StructureDefinition/patient-it-lab)
- Practitioner - Lab Report (http://hl7.it/fhir/lab-report/StructureDefinition/practitioner-it-lab)
- PractitionerRole - Lab Report (http://hl7.it/fhir/lab-report/StructureDefinition/practitionerrole-it-lab)
- Organization - Lab Report (http://hl7.it/fhir/lab-report/StructureDefinition/organization-it-lab)
- Device - Lab Report (http://hl7.it/fhir/lab-report/StructureDefinition/device-it-lab)

Maturity: 1

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Media |  | 0..* | Media | Media Referto di Laboratorio
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
status | ?!Σ | 1..1 | code | Stato del valore del risultato. Binding: EventStatus (required): Codes identifying the lifecycle stage of an event.
type | Σ | 0..1 | CodeableConcept | Descrizione attributo: Tipo di contenuto multimediale. Possibili valori: image | video | audio Binding: MediaType (required)
subject | Σ | 1..1 | Reference(Patient - Lab Report) | Reference al soggetto del file multimediali.
reference | Σ C | 1..1 | string | Reference Literal, Relative, URL interno o assoluto.
operator | Σ | 0..1 | Reference(Practitioner - Lab Report | PractitionerRole - Lab Report | Organization - Lab Report | CareTeam | Patient - Lab Report | Device - Lab Report | RelatedPerson) | Operatore che ha generato il contenuto multimediale.
device | Σ | 0..1 | Reference(Device - Lab Report) | Dispositivo utilizzato per raccogliere i file multimediali.
content | Σ | 1..1 | Attachment | Contenuto multimediale.
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Media.status | Base | required | EventStatus | 📍4.0.1 | FHIR Std.
Media.type | Base | required | Media Type | 📦4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Media | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Media | 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().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Media | 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 | Media | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Media | 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 Media

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Media |  | 0..* | Media | Media Referto di Laboratorio
status |  | 1..1 | code | Stato del valore del risultato.
type |  | 0..1 | CodeableConcept | Descrizione attributo: Tipo di contenuto multimediale. Possibili valori: image | video | audio Binding: MediaType (required)
subject |  | 1..1 | Reference(Patient - Lab Report) | Reference al soggetto del file multimediali.
reference |  | 1..1 | string | Reference Literal, Relative, URL interno o assoluto.
operator |  | 0..1 | Reference(Practitioner - Lab Report | PractitionerRole - Lab Report | Organization - Lab Report | CareTeam | Patient - Lab Report | Device - Lab Report | RelatedPerson) | Operatore che ha generato il contenuto multimediale.
device |  | 0..1 | Reference(Device - Lab Report) | Dispositivo utilizzato per raccogliere i file multimediali.
content |  | 1..1 | Attachment | Contenuto multimediale.
Documentation for this format

#### Terminology Bindings (Differential)

Path | Status | Usage | ValueSet | Version | Source
Media.type | Base | required | Media Type | 📦4.0.1 | FHIR Std.

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Media |  | 0..* | Media | Media Referto di Laboratorio
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
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
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | Identifier(s) for the image
basedOn | Σ | 0..* | Reference(ServiceRequest | CarePlan) | Procedure that caused this media to be created
partOf | Σ | 0..* | Reference(Resource) | Part of referenced event
status | ?!Σ | 1..1 | code | Stato del valore del risultato. Binding: EventStatus (required): Codes identifying the lifecycle stage of an event.
type | Σ | 0..1 | CodeableConcept | Descrizione attributo: Tipo di contenuto multimediale. Possibili valori: image | video | audio Binding: MediaType (required)
modality | Σ | 0..1 | CodeableConcept | The type of acquisition equipment/process Binding: MediaModality (example): Detailed information about the type of the image - its kind, purpose, or the kind of equipment used to generate it.
view | Σ | 0..1 | CodeableConcept | Imaging view, e.g. Lateral or Antero-posterior Binding: MediaCollectionView/Projection (example): Imaging view (projection) used when collecting an image.
subject | Σ | 1..1 | Reference(Patient - Lab Report) | Reference al soggetto del file multimediali.
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
reference | Σ C | 1..1 | string | Reference Literal, Relative, URL interno o assoluto.
type | Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
encounter | Σ | 0..1 | Reference(Encounter) | Encounter associated with media
created[x] | Σ | 0..1 |  | When Media was collected
createdDateTime |  |  | dateTime |
createdPeriod |  |  | Period |
issued | Σ | 0..1 | instant | Date/Time this version was made available
operator | Σ | 0..1 | Reference(Practitioner - Lab Report | PractitionerRole - Lab Report | Organization - Lab Report | CareTeam | Patient - Lab Report | Device - Lab Report | RelatedPerson) | Operatore che ha generato il contenuto multimediale.
reasonCode | Σ | 0..* | CodeableConcept | Why was event performed? Binding: ProcedureReasonCodes (example): The reason for the media.
bodySite | Σ | 0..1 | CodeableConcept | Observed body part Binding: SNOMEDCTBodyStructures (example): Codes describing anatomical locations. May include laterality.
deviceName | Σ | 0..1 | string | Name of the device/manufacturer
device | Σ | 0..1 | Reference(Device - Lab Report) | Dispositivo utilizzato per raccogliere i file multimediali.
height | Σ | 0..1 | positiveInt | Height of the image in pixels (photo/video)
width | Σ | 0..1 | positiveInt | Width of the image in pixels (photo/video)
frames | Σ | 0..1 | positiveInt | Number of frames if > 1 (photo)
duration | Σ | 0..1 | decimal | Length in seconds (audio / video)
content | Σ | 1..1 | Attachment | Contenuto multimediale.
note |  | 0..* | Annotation | Comments made about the media
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Media.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std.
Media.status | Base | required | EventStatus | 📍4.0.1 | FHIR Std.
Media.type | Base | required | Media Type | 📦4.0.1 | FHIR Std.
Media.modality | Base | example | Media Modality | 📍4.0.1 | FHIR Std.
Media.view | Base | example | Media Collection View/Projection | 📍4.0.1 | FHIR Std.
Media.subject.type | Base | extensible | ResourceType | 📍4.0.1 | FHIR Std.
Media.reasonCode | Base | example | Procedure Reason Codes | 📍4.0.1 | FHIR Std.
Media.bodySite | Base | example | SNOMED CT Body Structures | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | Media | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Media | 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().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | Media | 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 | Media | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | Media | 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 Media

Summary

Mandatory: 2 elements

Structures

This structure refers to these other structures:

- Patient - Lab Report (http://hl7.it/fhir/lab-report/StructureDefinition/patient-it-lab)
- Practitioner - Lab Report (http://hl7.it/fhir/lab-report/StructureDefinition/practitioner-it-lab)
- PractitionerRole - Lab Report (http://hl7.it/fhir/lab-report/StructureDefinition/practitionerrole-it-lab)
- Organization - Lab Report (http://hl7.it/fhir/lab-report/StructureDefinition/organization-it-lab)
- Device - Lab Report (http://hl7.it/fhir/lab-report/StructureDefinition/device-it-lab)

Maturity: 1

Other representations of profile: CSV, Excel, Schematron