RIVO-Noord Zorgviewer Implementation Guide
1.21.0 - CI build

RIVO-Noord Zorgviewer Implementation Guide, published by RIVO-NN HL7NL. This guide is not an authorized publication; it is the continuous build for version 1.21.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/RIVO-Noord/zorgviewer-ig/ and changes regularly. See the Directory of published versions

## Resource Profile: Alert

Official URL: http://fhir.hl7.nl/zorgviewer/StructureDefinition/Flag | Version: 1.21.0
Active as of 2025-10-28 | Computable Name: Alert

Alert (Flag)

> Dit Profiel is het resultaat van de vergelijking tussen de zib2017 FHIR Profiel en de implementaties in Epic, Chipsoft, Topicus en Nexus. De elementen die in ieder geval in alle output beschikbaar zullen zijn. Voornamelijk bedoeld voor houvast van een client en voor validatie van output.

### Zorginformatiebouwsteen

ZIB Alert

### View Definition

ViewDefinition voor Alerts

### UI Wireframe

Alerts / Waarschuwingen

>< | Bron | Datum | Voor(1) | Voor(2) | Voor(3) | Categorie | Status(1) | Status(2)
--- | --- | --- | --- | --- | --- | --- | --- | ---
+ | Chipsoft-OTH | 15-4-2019 | BRMO: Bewezen dragerschap | Anders | other | conditie | active | active
+ | Chipsoft-OTH | 19-7-2024 | MRSA: Bewezen dragerschap | Anders | other | conditie | active | active
+ | Chipsoft | 1-6-2010 |  | Drager MRSA |  | waarschuwing |  | active
+ | Epic | 10-5-2022 |  | TBC |  | Infection Flag |  | inactive
+ | Nexus | 16-5-2022 |  | LET OP!!!!! Deze patient wordt gebruikt voor de (her)kwalificatie voor VIPP 5. ... |  | Waarschuwing |  | active
+ | Sanday-US315638 | 1-4-2025 |  | Keelpijn | Keelpijn | Alert |  | active
+ | Sanday-US315638 | 13-2-2025 |  | Maagpijn | Maagpijn | Alert |  | active

### Kolom Definities

Kolom label | FHIR Path Expression | FHIR Type | Zib element | Toelichting of regels
Bron | `meta.extension('http://hl7.org/fhir/4.0/StructureDefinition/extension-Meta.source').valueUri` | `string` | nvt | Lookup adhv uri (AGB-Z of OID) `<adressering-base>/Organization?identifier=<.meta.tag.code>` en gebruik dan `Organization.name`
Datum | `period.start` | `dateTime` | BeginDatumTijd |
Voor(1) | `extension.where('http://hl7.org/fhir/StructureDefinition/flag-detail').valueReference.resolve().code.text` | `string` | Conditie::Probleem | Als geen Voor(1), dan Voor(2), als geen Voor(2) dan Voor(3). De flag-detail Condition opzoeken in de resultaat Bundle.
Voor(2) | `code.text | code.coding[0].display` | `string` | AlertNaam |
Voor(3) | `extension('http://hl7.org/fhir/StructureDefinition/flag-detail').valueReference.display` | `string` | Conditie::Probleem |
Categorie | `iif(exists(category.text),category.text,category.coding.display)` | `string` | AlertType |
Status(1) | `extension('http://hl7.org/fhir/StructureDefinition/flag-detail').valueReference.resolve().clinicalStatus` | `code` | Conditie::Probleem/ProbleemStatus | Logica: als geen Status(1), dan Status(2) Mapping: `active,recurrence` naar `Actueel`; `inactive,remission` naar `Niet actueel`
Status(2) | `status` | `code` | nvt | Mapping: `active` naar `Actueel`; `inactive` naar `Niet actueel` Uitgefilterd: `entered-in-error` wordt niet getoond in de Zorgviewer, omdat het om foutief ingevoerde data gaat.

### Request

1. Opvragen (search) alerts

   `GET <ontsluiten-bronsysteem-base>/Flag?patient=<fhir_patient_id>`

### Bronsysteem herkennen

De Zorgviewer-backend of Ontsluiten bronsysteem MOET na bevragen van het bronsysteem aan elk resultaat resource een meta-tag toevoegen met de AGB, OID of URA identifier van de zorgaanbieder (zie Organization voor voorbeelden). Dit wordt vervolgens gebruikt in de "Bron" kolom in de Zorgviewer-frontend. N.B. We gebruiken hier een pre-adopt van de FHIR R4 Meta.source.

Toevoegen aan elke response, dus per resource (bij een read) of per Bundle (bij een search):

    "meta": {
        "extension": [ {
            "url": "http://hl7.org/fhir/4.0/StructureDefinition/extension-Meta.source",
            "valueUri": "urn:oid:2.16.840.1.113883.2.4.3.8"
        } ]
    }

Alternatief: Elke entry van een search response Bundle bevat een referentie naar de bijbehorende Patient (`<resource>.subject|patient`). Elke patient heeft een `Patient.managingOrganization` en in de gerefereerde `Organization.identifier` staat vervolgens o.a. de OID van het bronsysyeem. Of je gebruikt de identifiers om een volledige Organization op te zoeken in het adresboek en zie inhoud hier.

Usages:

- CapabilityStatements using this Profile: Ontsluiten Bronsysteem
- This Profile is not used by any profiles in this Implementation Guide

You can also check for usages in the FHIR IG Statistics

Changes since version 1.20.0:

- The data elements list has changed

### 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
--- | --- | --- | --- | ---
Flag |  | 0..* | Zib Alert(2.1.5) | Alert
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
Slices for extension |  |  |  | Content/Rules for all slices
extension:ConcernReference | S | 0..1 | (Complex) | Resource with details for flag URL: http://hl7.org/fhir/StructureDefinition/flag-detail
url |  | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/flag-detail"
Slices for valueReference |  |  |  | Content/Rules for all slices
valueReference:valueReference |  | 0..1 | Reference(Resource) | Value of extension
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
status | ?!Σ | 1..1 | code | active | inactive | entered-in-error Binding: FlagStatus (required): Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or entered in error.
category | Σ | 0..1 | CodeableConcept | AlertType Binding: AlertTypeCodelijst (extensible): Indicates the type of alert, meaning a rough description of the cause or origin of the warning. Example Example of AlertType: {"coding":[{"system":"http://loinc.org","code":"75323-6","display":"condition","userSelected":false}]}
text | S Σ | 0..1 | string | Plain text representation of the concept
code | Σ | 1..1 | CodeableConcept | AlertName Binding: AlertNaamCodelijst (extensible): Detail codes identifying specific flagged issues. Example Example of AlertName: {"coding":[{"system":"http://snomed.info/sct","code":"432415000","display":"Methicillin resistant staphylococcus aureus carrier"}]}
text | S Σ | 0..1 | string | Plain text representation of the concept
subject | Σ | 1..1 | Reference(nl-core-patient(2.2.5) | nl-core-location(2.0.5) | Group | nl-core-organization(2.0.6) | nl-core-practitioner(2.0.7) | PlanDefinition | HCIM PharmaceuticalProduct(2.0.7) | HCIM Procedure(2.1.11)) | Who/What is flag about?
Slices for extension |  |  |  | Content/Rules for all slices
extension:practitionerRole |  | 0..1 | Reference(nl-core-practitionerrole(2.0.7)) | Optional Extensions Element URL: http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference Constraints: ext-1
period | Σ | 0..1 | Period | Time period when flag is active
start | S Σ C | 0..1 | dateTime | StartDateTime Example Example of StartDateTime: 2017-02-07
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Flag.status | Base | required | FlagStatus | 📦3.0.2 | FHIR Std.
Flag.category | Base | extensible | AlertTypeCodelijst | 📦2017-12-31T00:00:00 | nictiz.fhir.nl.stu3.zib2017 v2.0
Flag.code | Base | extensible | AlertNaamCodelijst | 📦2017-12-31T00:00:00 | nictiz.fhir.nl.stu3.zib2017 v2.0

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-1 | error | Flag | If the resource is contained in another resource, it SHALL NOT contain any narrative | `contained.text.empty()`
dom-2 | error | Flag | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Flag | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource | `contained.where(('#'+id in %resource.descendants().reference).not()).empty()`
dom-4 | error | Flag | 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()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() | (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
ext-1 | error | Flag.subject.extension:practitionerRole | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from Zib Alert

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Flag |  | 0..* | Zib Alert(2.1.5) | Alert
Slices for extension |  |  |  | Content/Rules for all slices
extension:ConcernReference | S | 0..1 | Reference(Resource) | Resource with details for flag URL: http://hl7.org/fhir/StructureDefinition/flag-detail
category |  |  |  |
text | S | 0..1 | string | Plain text representation of the concept
code |  |  |  |
text | S | 0..1 | string | Plain text representation of the concept
period |  |  |  |
start | S | 0..1 | dateTime | StartDateTime
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Flag |  | 0..* | Zib Alert(2.1.5) | Alert
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: Common Languages (extensible): A human language.
Additional Bindings | Purpose
All Languages | 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
Slices for extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url
extension:ConcernReference | S | 0..1 | (Complex) | Resource with details for flag URL: http://hl7.org/fhir/StructureDefinition/flag-detail
id |  | 0..1 | string | xml:id (or equivalent in JSON)
extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/flag-detail"
Slices for valueReference |  |  |  | Content/Rules for all slices
valueReference:valueReference |  | 0..1 | Reference(Resource) | Value of extension
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | Business identifier
status | ?!Σ | 1..1 | code | active | inactive | entered-in-error Binding: FlagStatus (required): Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or entered in error.
category | Σ | 0..1 | CodeableConcept | AlertType Binding: AlertTypeCodelijst (extensible): Indicates the type of alert, meaning a rough description of the cause or origin of the warning. Example Example of AlertType: {"coding":[{"system":"http://loinc.org","code":"75323-6","display":"condition","userSelected":false}]}
id |  | 0..1 | string | xml:id (or equivalent in JSON)
extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url
coding | Σ | 0..* | Coding | Code defined by a terminology system
text | S Σ | 0..1 | string | Plain text representation of the concept
code | Σ | 1..1 | CodeableConcept | AlertName Binding: AlertNaamCodelijst (extensible): Detail codes identifying specific flagged issues. Example Example of AlertName: {"coding":[{"system":"http://snomed.info/sct","code":"432415000","display":"Methicillin resistant staphylococcus aureus carrier"}]}
id |  | 0..1 | string | xml:id (or equivalent in JSON)
extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url
coding | Σ | 0..* | Coding | Code defined by a terminology system
text | S Σ | 0..1 | string | Plain text representation of the concept
subject | Σ | 1..1 | Reference(nl-core-patient(2.2.5) | nl-core-location(2.0.5) | Group | nl-core-organization(2.0.6) | nl-core-practitioner(2.0.7) | PlanDefinition | HCIM PharmaceuticalProduct(2.0.7) | HCIM Procedure(2.1.11)) | Who/What is flag about?
id |  | 0..1 | string | xml:id (or equivalent in JSON)
Slices for extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url
extension:practitionerRole |  | 0..1 | Reference(nl-core-practitionerrole(2.0.7)) | Optional Extensions Element URL: http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference Constraints: ext-1
reference | Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
period | Σ | 0..1 | Period | Time period when flag is active
id |  | 0..1 | string | xml:id (or equivalent in JSON)
extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url
start | S Σ C | 0..1 | dateTime | StartDateTime Example Example of StartDateTime: 2017-02-07
end | Σ C | 0..1 | dateTime | End time with inclusive boundary, if not ongoing
encounter | Σ | 0..1 | Reference(HCIM Encounter(2.1.6)) | Alert relevant during encounter
author | Σ | 0..1 | Reference(HCIM MedicalDevice Product(2.0.6) | nl-core-patient(2.2.5) | nl-core-practitioner(2.0.7) | nl-core-organization(2.0.6)) | Flag creator
id |  | 0..1 | string | xml:id (or equivalent in JSON)
Slices for extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url
extension:practitionerRole |  | 0..1 | Reference(nl-core-practitionerrole(2.0.7)) | Optional Extensions Element URL: http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference Constraints: ext-1
reference | Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Flag.language | Base | extensible | Common Languages | 📦3.0.2 | FHIR Std.
Flag.status | Base | required | FlagStatus | 📦3.0.2 | FHIR Std.
Flag.category | Base | extensible | AlertTypeCodelijst | 📦2017-12-31T00:00:00 | nictiz.fhir.nl.stu3.zib2017 v2.0
Flag.code | Base | extensible | AlertNaamCodelijst | 📦2017-12-31T00:00:00 | nictiz.fhir.nl.stu3.zib2017 v2.0

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-1 | error | Flag | If the resource is contained in another resource, it SHALL NOT contain any narrative | `contained.text.empty()`
dom-2 | error | Flag | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Flag | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource | `contained.where(('#'+id in %resource.descendants().reference).not()).empty()`
dom-4 | error | Flag | 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()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() | (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
ext-1 | error | Flag.subject.extension:practitionerRole, Flag.author.extension:practitionerRole | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from Zib Alert

Summary

Must-Support: 4 elements

Extensions

This structure refers to these extensions:

- http://hl7.org/fhir/StructureDefinition/flag-detail

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Flag |  | 0..* | Zib Alert(2.1.5) | Alert
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
Slices for extension |  |  |  | Content/Rules for all slices
extension:ConcernReference | S | 0..1 | (Complex) | Resource with details for flag URL: http://hl7.org/fhir/StructureDefinition/flag-detail
url |  | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/flag-detail"
Slices for valueReference |  |  |  | Content/Rules for all slices
valueReference:valueReference |  | 0..1 | Reference(Resource) | Value of extension
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
status | ?!Σ | 1..1 | code | active | inactive | entered-in-error Binding: FlagStatus (required): Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or entered in error.
category | Σ | 0..1 | CodeableConcept | AlertType Binding: AlertTypeCodelijst (extensible): Indicates the type of alert, meaning a rough description of the cause or origin of the warning. Example Example of AlertType: {"coding":[{"system":"http://loinc.org","code":"75323-6","display":"condition","userSelected":false}]}
text | S Σ | 0..1 | string | Plain text representation of the concept
code | Σ | 1..1 | CodeableConcept | AlertName Binding: AlertNaamCodelijst (extensible): Detail codes identifying specific flagged issues. Example Example of AlertName: {"coding":[{"system":"http://snomed.info/sct","code":"432415000","display":"Methicillin resistant staphylococcus aureus carrier"}]}
text | S Σ | 0..1 | string | Plain text representation of the concept
subject | Σ | 1..1 | Reference(nl-core-patient(2.2.5) | nl-core-location(2.0.5) | Group | nl-core-organization(2.0.6) | nl-core-practitioner(2.0.7) | PlanDefinition | HCIM PharmaceuticalProduct(2.0.7) | HCIM Procedure(2.1.11)) | Who/What is flag about?
Slices for extension |  |  |  | Content/Rules for all slices
extension:practitionerRole |  | 0..1 | Reference(nl-core-practitionerrole(2.0.7)) | Optional Extensions Element URL: http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference Constraints: ext-1
period | Σ | 0..1 | Period | Time period when flag is active
start | S Σ C | 0..1 | dateTime | StartDateTime Example Example of StartDateTime: 2017-02-07
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Flag.status | Base | required | FlagStatus | 📦3.0.2 | FHIR Std.
Flag.category | Base | extensible | AlertTypeCodelijst | 📦2017-12-31T00:00:00 | nictiz.fhir.nl.stu3.zib2017 v2.0
Flag.code | Base | extensible | AlertNaamCodelijst | 📦2017-12-31T00:00:00 | nictiz.fhir.nl.stu3.zib2017 v2.0

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-1 | error | Flag | If the resource is contained in another resource, it SHALL NOT contain any narrative | `contained.text.empty()`
dom-2 | error | Flag | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Flag | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource | `contained.where(('#'+id in %resource.descendants().reference).not()).empty()`
dom-4 | error | Flag | 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()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() | (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
ext-1 | error | Flag.subject.extension:practitionerRole | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

Differential View

This structure is derived from Zib Alert

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Flag |  | 0..* | Zib Alert(2.1.5) | Alert
Slices for extension |  |  |  | Content/Rules for all slices
extension:ConcernReference | S | 0..1 | Reference(Resource) | Resource with details for flag URL: http://hl7.org/fhir/StructureDefinition/flag-detail
category |  |  |  |
text | S | 0..1 | string | Plain text representation of the concept
code |  |  |  |
text | S | 0..1 | string | Plain text representation of the concept
period |  |  |  |
start | S | 0..1 | dateTime | StartDateTime
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Flag |  | 0..* | Zib Alert(2.1.5) | Alert
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: Common Languages (extensible): A human language.
Additional Bindings | Purpose
All Languages | 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
Slices for extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url
extension:ConcernReference | S | 0..1 | (Complex) | Resource with details for flag URL: http://hl7.org/fhir/StructureDefinition/flag-detail
id |  | 0..1 | string | xml:id (or equivalent in JSON)
extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "http://hl7.org/fhir/StructureDefinition/flag-detail"
Slices for valueReference |  |  |  | Content/Rules for all slices
valueReference:valueReference |  | 0..1 | Reference(Resource) | Value of extension
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | Business identifier
status | ?!Σ | 1..1 | code | active | inactive | entered-in-error Binding: FlagStatus (required): Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or entered in error.
category | Σ | 0..1 | CodeableConcept | AlertType Binding: AlertTypeCodelijst (extensible): Indicates the type of alert, meaning a rough description of the cause or origin of the warning. Example Example of AlertType: {"coding":[{"system":"http://loinc.org","code":"75323-6","display":"condition","userSelected":false}]}
id |  | 0..1 | string | xml:id (or equivalent in JSON)
extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url
coding | Σ | 0..* | Coding | Code defined by a terminology system
text | S Σ | 0..1 | string | Plain text representation of the concept
code | Σ | 1..1 | CodeableConcept | AlertName Binding: AlertNaamCodelijst (extensible): Detail codes identifying specific flagged issues. Example Example of AlertName: {"coding":[{"system":"http://snomed.info/sct","code":"432415000","display":"Methicillin resistant staphylococcus aureus carrier"}]}
id |  | 0..1 | string | xml:id (or equivalent in JSON)
extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url
coding | Σ | 0..* | Coding | Code defined by a terminology system
text | S Σ | 0..1 | string | Plain text representation of the concept
subject | Σ | 1..1 | Reference(nl-core-patient(2.2.5) | nl-core-location(2.0.5) | Group | nl-core-organization(2.0.6) | nl-core-practitioner(2.0.7) | PlanDefinition | HCIM PharmaceuticalProduct(2.0.7) | HCIM Procedure(2.1.11)) | Who/What is flag about?
id |  | 0..1 | string | xml:id (or equivalent in JSON)
Slices for extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url
extension:practitionerRole |  | 0..1 | Reference(nl-core-practitionerrole(2.0.7)) | Optional Extensions Element URL: http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference Constraints: ext-1
reference | Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
period | Σ | 0..1 | Period | Time period when flag is active
id |  | 0..1 | string | xml:id (or equivalent in JSON)
extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url
start | S Σ C | 0..1 | dateTime | StartDateTime Example Example of StartDateTime: 2017-02-07
end | Σ C | 0..1 | dateTime | End time with inclusive boundary, if not ongoing
encounter | Σ | 0..1 | Reference(HCIM Encounter(2.1.6)) | Alert relevant during encounter
author | Σ | 0..1 | Reference(HCIM MedicalDevice Product(2.0.6) | nl-core-patient(2.2.5) | nl-core-practitioner(2.0.7) | nl-core-organization(2.0.6)) | Flag creator
id |  | 0..1 | string | xml:id (or equivalent in JSON)
Slices for extension |  | 0..* | Extension | Additional Content defined by implementations Slice: Unordered, Open by value:url
extension:practitionerRole |  | 0..1 | Reference(nl-core-practitionerrole(2.0.7)) | Optional Extensions Element URL: http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference Constraints: ext-1
reference | Σ C | 0..1 | string | Literal reference, Relative, internal or absolute URL
identifier | Σ | 0..1 | Identifier | Logical reference, when literal reference is not known
display | Σ | 0..1 | string | Text alternative for the resource
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Flag.language | Base | extensible | Common Languages | 📦3.0.2 | FHIR Std.
Flag.status | Base | required | FlagStatus | 📦3.0.2 | FHIR Std.
Flag.category | Base | extensible | AlertTypeCodelijst | 📦2017-12-31T00:00:00 | nictiz.fhir.nl.stu3.zib2017 v2.0
Flag.code | Base | extensible | AlertNaamCodelijst | 📦2017-12-31T00:00:00 | nictiz.fhir.nl.stu3.zib2017 v2.0

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-1 | error | Flag | If the resource is contained in another resource, it SHALL NOT contain any narrative | `contained.text.empty()`
dom-2 | error | Flag | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | Flag | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource | `contained.where(('#'+id in %resource.descendants().reference).not()).empty()`
dom-4 | error | Flag | 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()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() | (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`
ext-1 | error | Flag.subject.extension:practitionerRole, Flag.author.extension:practitionerRole | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from Zib Alert

Summary

Must-Support: 4 elements

Extensions

This structure refers to these extensions:

- http://hl7.org/fhir/StructureDefinition/flag-detail

Other representations of profile: CSV, Excel, Schematron