0.1.0 - draft
NyTimelosingIG - Local Development build (v0.1.0). See the Directory of published versions
Official URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-Flag | Version: 0.1.0 | |||
Draft as of 2024-06-01 | Computable Name: HnBasisFlag |
Basisprofil for Flag used in ‘ny timeløsning.
Usage:
Description of Profiles, Differentials, Snapshots and how the different presentations work.
This structure is derived from Flag
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Flag | 0..* | Flag | Key information to flag to healthcare providers | |
status | ||||
statusPeriod | 0..1 | Period | hn-basis-flagStatusPeriod URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod | |
value[x] | 0..1 | Period | Period for flag status | |
category | ||||
coding | C | 0..* | Coding | Code defined by a terminology system inv-4: If code is used in a codable consept the system must be used |
code | 1..1 | CodeableConcept | Coded or textual message to display to user Binding: hn-appointment-flag-code-vs (extensible) | |
coding | C | 0..* | Coding | Code defined by a terminology system inv-4: If code is used in a codable consept the system must be used |
Documentation for this format |
Path | Conformance | ValueSet |
Flag.code | extensible | HnAppointmentFlagCodeVS (a valid code from hn-appointment-flag-code-cs) |
Id | Grade | Path(s) | Details | Requirements |
inv-4 | error | Flag.category.coding, Flag.code.coding | If code is used in a codable consept the system must be used : code > '' implies (system > '' ) |
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Flag | 0..* | Flag | Key information to flag to healthcare providers | |
implicitRules | ?!ΣN | 0..1 | uri | A set of rules under which this content was created |
modifierExtension | ?!N | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url |
status | ?!ΣN | 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 was entered in error. |
statusPeriod | 0..1 | Period | hn-basis-flagStatusPeriod URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod | |
extension | 0..0 | |||
url | 1..1 | uri | "http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod" | |
value[x] | 0..1 | Period | Period for flag status | |
code | Σ | 1..1 | CodeableConcept | Coded or textual message to display to user Binding: hn-appointment-flag-code-vs (extensible) |
coding | ΣC | 0..* | Coding | Code defined by a terminology system inv-4: If code is used in a codable consept the system must be used |
subject | ΣCN | 1..1 | Reference(Patient | Location | Group | Organization | Practitioner | PlanDefinition | Medication | Procedure) | Who/What is flag about? |
Documentation for this format |
Path | Conformance | ValueSet |
Flag.status | required | FlagStatus |
Flag.code | extensible | HnAppointmentFlagCodeVS (a valid code from hn-appointment-flag-code-cs) |
Id | Grade | Path(s) | Details | Requirements |
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 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 | 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() | |
dom-5 | error | Flag | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
dom-6 | best practice | Flag | 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** elements | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
inv-4 | error | Flag.code.coding | If code is used in a codable consept the system must be used : code > '' implies (system > '' ) | |
ref-1 | error | Flag.subject | SHALL have a contained resource if a local reference is provided : reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) |
Name | Flags | Card. | Type | Description & Constraints | ||||
---|---|---|---|---|---|---|---|---|
Flag | 0..* | Flag | Key information to flag to healthcare providers | |||||
id | Σ | 0..1 | id | Logical id of this artifact | ||||
meta | ΣN | 0..1 | Meta | Metadata about the resource | ||||
implicitRules | ?!ΣN | 0..1 | uri | A set of rules under which this content was created | ||||
language | N | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| ||||
text | N | 0..1 | Narrative | Text summary of the resource, for human interpretation | ||||
contained | 0..* | Resource | Contained, inline Resources | |||||
extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | ||||
modifierExtension | ?!N | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url | ||||
identifier | ΣN | 0..* | Identifier | Business identifier | ||||
status | ?!ΣN | 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 was entered in error. | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
Slices for extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | ||||
statusPeriod | 0..1 | Period | hn-basis-flagStatusPeriod URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..0 | |||||||
url | 1..1 | uri | "http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod" | |||||
value[x] | 0..1 | Period | Period for flag status | |||||
value | 0..1 | code | Primitive value for code Max Length: 1048576 | |||||
category | ΣN | 0..* | CodeableConcept | Clinical, administrative, etc. Binding: FlagCategory (example): A general category for flags for filtering/display purposes. | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | ||||
coding | ΣC | 0..* | Coding | Code defined by a terminology system inv-4: If code is used in a codable consept the system must be used | ||||
text | ΣN | 0..1 | string | Plain text representation of the concept | ||||
code | Σ | 1..1 | CodeableConcept | Coded or textual message to display to user Binding: hn-appointment-flag-code-vs (extensible) | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | ||||
coding | ΣC | 0..* | Coding | Code defined by a terminology system inv-4: If code is used in a codable consept the system must be used | ||||
text | ΣN | 0..1 | string | Plain text representation of the concept | ||||
subject | ΣCN | 1..1 | Reference(Patient | Location | Group | Organization | Practitioner | PlanDefinition | Medication | Procedure) | Who/What is flag about? | ||||
period | ΣCN | 0..1 | Period | Time period when flag is active | ||||
encounter | ΣCN | 0..1 | Reference(Encounter) | Alert relevant during encounter | ||||
author | ΣCN | 0..1 | Reference(Device | Organization | Patient | Practitioner | PractitionerRole) | Flag creator | ||||
Documentation for this format |
Path | Conformance | ValueSet | ||||
Flag.language | preferred | CommonLanguages
| ||||
Flag.status | required | FlagStatus | ||||
Flag.category | example | FlagCategory | ||||
Flag.code | extensible | HnAppointmentFlagCodeVS (a valid code from hn-appointment-flag-code-cs) |
Id | Grade | Path(s) | Details | Requirements |
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 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 | 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() | |
dom-5 | error | Flag | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
dom-6 | best practice | Flag | 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** elements | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
inv-4 | error | Flag.category.coding, Flag.code.coding | If code is used in a codable consept the system must be used : code > '' implies (system > '' ) | |
per-1 | error | Flag.period | If present, start SHALL have a lower value than end : start.hasValue().not() or end.hasValue().not() or (start <= end) | |
ref-1 | error | Flag.subject, Flag.encounter, Flag.author | SHALL have a contained resource if a local reference is provided : reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) |
This structure is derived from Flag
Differential View
This structure is derived from Flag
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Flag | 0..* | Flag | Key information to flag to healthcare providers | |
status | ||||
statusPeriod | 0..1 | Period | hn-basis-flagStatusPeriod URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod | |
value[x] | 0..1 | Period | Period for flag status | |
category | ||||
coding | C | 0..* | Coding | Code defined by a terminology system inv-4: If code is used in a codable consept the system must be used |
code | 1..1 | CodeableConcept | Coded or textual message to display to user Binding: hn-appointment-flag-code-vs (extensible) | |
coding | C | 0..* | Coding | Code defined by a terminology system inv-4: If code is used in a codable consept the system must be used |
Documentation for this format |
Path | Conformance | ValueSet |
Flag.code | extensible | HnAppointmentFlagCodeVS (a valid code from hn-appointment-flag-code-cs) |
Id | Grade | Path(s) | Details | Requirements |
inv-4 | error | Flag.category.coding, Flag.code.coding | If code is used in a codable consept the system must be used : code > '' implies (system > '' ) |
Key Elements View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Flag | 0..* | Flag | Key information to flag to healthcare providers | |
implicitRules | ?!ΣN | 0..1 | uri | A set of rules under which this content was created |
modifierExtension | ?!N | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url |
status | ?!ΣN | 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 was entered in error. |
statusPeriod | 0..1 | Period | hn-basis-flagStatusPeriod URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod | |
extension | 0..0 | |||
url | 1..1 | uri | "http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod" | |
value[x] | 0..1 | Period | Period for flag status | |
code | Σ | 1..1 | CodeableConcept | Coded or textual message to display to user Binding: hn-appointment-flag-code-vs (extensible) |
coding | ΣC | 0..* | Coding | Code defined by a terminology system inv-4: If code is used in a codable consept the system must be used |
subject | ΣCN | 1..1 | Reference(Patient | Location | Group | Organization | Practitioner | PlanDefinition | Medication | Procedure) | Who/What is flag about? |
Documentation for this format |
Path | Conformance | ValueSet |
Flag.status | required | FlagStatus |
Flag.code | extensible | HnAppointmentFlagCodeVS (a valid code from hn-appointment-flag-code-cs) |
Id | Grade | Path(s) | Details | Requirements |
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 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 | 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() | |
dom-5 | error | Flag | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
dom-6 | best practice | Flag | 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** elements | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
inv-4 | error | Flag.code.coding | If code is used in a codable consept the system must be used : code > '' implies (system > '' ) | |
ref-1 | error | Flag.subject | SHALL have a contained resource if a local reference is provided : reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints | ||||
---|---|---|---|---|---|---|---|---|
Flag | 0..* | Flag | Key information to flag to healthcare providers | |||||
id | Σ | 0..1 | id | Logical id of this artifact | ||||
meta | ΣN | 0..1 | Meta | Metadata about the resource | ||||
implicitRules | ?!ΣN | 0..1 | uri | A set of rules under which this content was created | ||||
language | N | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| ||||
text | N | 0..1 | Narrative | Text summary of the resource, for human interpretation | ||||
contained | 0..* | Resource | Contained, inline Resources | |||||
extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | ||||
modifierExtension | ?!N | 0..* | Extension | Extensions that cannot be ignored Slice: Unordered, Open by value:url | ||||
identifier | ΣN | 0..* | Identifier | Business identifier | ||||
status | ?!ΣN | 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 was entered in error. | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
Slices for extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | ||||
statusPeriod | 0..1 | Period | hn-basis-flagStatusPeriod URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..0 | |||||||
url | 1..1 | uri | "http://helsenorge.no/fhir/StructureDefinition/hn-basis-flagStatusPeriod" | |||||
value[x] | 0..1 | Period | Period for flag status | |||||
value | 0..1 | code | Primitive value for code Max Length: 1048576 | |||||
category | ΣN | 0..* | CodeableConcept | Clinical, administrative, etc. Binding: FlagCategory (example): A general category for flags for filtering/display purposes. | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | ||||
coding | ΣC | 0..* | Coding | Code defined by a terminology system inv-4: If code is used in a codable consept the system must be used | ||||
text | ΣN | 0..1 | string | Plain text representation of the concept | ||||
code | Σ | 1..1 | CodeableConcept | Coded or textual message to display to user Binding: hn-appointment-flag-code-vs (extensible) | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | N | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | ||||
coding | ΣC | 0..* | Coding | Code defined by a terminology system inv-4: If code is used in a codable consept the system must be used | ||||
text | ΣN | 0..1 | string | Plain text representation of the concept | ||||
subject | ΣCN | 1..1 | Reference(Patient | Location | Group | Organization | Practitioner | PlanDefinition | Medication | Procedure) | Who/What is flag about? | ||||
period | ΣCN | 0..1 | Period | Time period when flag is active | ||||
encounter | ΣCN | 0..1 | Reference(Encounter) | Alert relevant during encounter | ||||
author | ΣCN | 0..1 | Reference(Device | Organization | Patient | Practitioner | PractitionerRole) | Flag creator | ||||
Documentation for this format |
Path | Conformance | ValueSet | ||||
Flag.language | preferred | CommonLanguages
| ||||
Flag.status | required | FlagStatus | ||||
Flag.category | example | FlagCategory | ||||
Flag.code | extensible | HnAppointmentFlagCodeVS (a valid code from hn-appointment-flag-code-cs) |
Id | Grade | Path(s) | Details | Requirements |
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 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 | 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() | |
dom-5 | error | Flag | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
dom-6 | best practice | Flag | 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** elements | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
inv-4 | error | Flag.category.coding, Flag.code.coding | If code is used in a codable consept the system must be used : code > '' implies (system > '' ) | |
per-1 | error | Flag.period | If present, start SHALL have a lower value than end : start.hasValue().not() or end.hasValue().not() or (start <= end) | |
ref-1 | error | Flag.subject, Flag.encounter, Flag.author | SHALL have a contained resource if a local reference is provided : reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) |
This structure is derived from Flag
Other representations of profile: CSV, Excel, Schematron