0.1.0 - draft

NyTimelosingIG - Local Development build (v0.1.0). See the Directory of published versions

Resource Profile: hn-basis-AppointmentResponse

Official URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-AppointmentResponse Version: 0.1.0
Draft as of 2024-06-01 Computable Name: HnBasisAppointmentResponse

Basisprofil for AppointmentResponse used in ‘ny timeløsning’.

Usage:

  • This Resource Profile is not used by any profiles in this Implementation Guide

Formal Views of Profile Content

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

This structure is derived from NoBasisAppointmentResponse

NameFlagsCard.TypeDescription & Constraintsdoco
.. AppointmentResponse 0..*NoBasisAppointmentResponseA reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection
... changeConferenceType 0..1Codinghn-basis-changeConferenceType
URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-changeConferenceType
Binding: No Basis VirtualServiceType Value Set (required)
.... value[x] 0..1CodingPasient askes for changed conference type.
... identifier 1..1IdentifierExternal Ids for this item
.... system 1..1uriThe namespace for the identifier value
.... value 1..1stringThe value that is unique
... appointment
.... reference 0..0
.... coding C0..*CodingCode defined by a terminology system
inv-4: If code is used in a codable consept the system must be used
... actor 1..1Reference(Patient)Use only logical reference
.... reference 0..0
.... type 1..1uriType the reference refers to (e.g. "Patient")
Required Pattern: Patient
.... identifier C1..1IdentifierLogical reference, when literal reference is not known
inv-2: Only urn:oid:2.16.578.1.12.4.1.4.1 (FNR) or urn:oid:2.16.578.1.12.4.1.4.2 (DNR) are allowed as systems to identify patient in this profile.
..... type
...... coding C0..*CodingCode defined by a terminology system
inv-3: Only FNR or DNR number are allowed as codes to identify patient in this profile.
..... system 1..1uriThe namespace for the identifier value
..... value 1..1stringThe value that is unique

doco Documentation for this format

Constraints

IdGradePath(s)DetailsRequirements
inv-2errorAppointmentResponse.actor.identifierOnly urn:oid:2.16.578.1.12.4.1.4.1 (FNR) or urn:oid:2.16.578.1.12.4.1.4.2 (DNR) are allowed as systems to identify patient in this profile.
: system = 'urn:oid:2.16.578.1.12.4.1.4.1' or system = 'urn:oid:2.16.578.1.12.4.1.4.2'
inv-3errorAppointmentResponse.actor.identifier.type.codingOnly FNR or DNR number are allowed as codes to identify patient in this profile.
: code = 'FNR' or code = 'DNR'
inv-4errorAppointmentResponse.participantType.codingIf code is used in a codable consept the system must be used
: code > '' implies (system > '' )
NameFlagsCard.TypeDescription & Constraintsdoco
.. AppointmentResponse C0..*NoBasisAppointmentResponseA reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection
... implicitRules ?!ΣN0..1uriA set of rules under which this content was created
... shortNotice N0..1booleanno-basis-shortnotice
URL: http://hl7.no/fhir/StructureDefinition/no-basis-shortnotice
.... extension N0..0
.... url 1..1uri"http://hl7.no/fhir/StructureDefinition/no-basis-shortnotice"
... changeConferenceType 0..1Codinghn-basis-changeConferenceType
URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-changeConferenceType
Binding: No Basis VirtualServiceType Value Set (required)
.... extension 0..0
.... url 1..1uri"http://helsenorge.no/fhir/StructureDefinition/hn-basis-changeConferenceType"
.... value[x] 0..1CodingPasient askes for changed conference type.
Binding: No Basis VirtualServiceType Value Set (required)
... identifier Σ1..1IdentifierExternal Ids for this item
.... use ?!ΣN0..1codeusual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .

.... system Σ1..1uriThe namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value Σ1..1stringThe value that is unique
Example General: 123456
... appointment ΣCN1..1Reference(Appointment)Appointment this response relates to
... actor ΣC1..1Reference(Patient)Use only logical reference
.... type Σ1..1uriType the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).


Required Pattern: Patient
.... identifier ΣC1..1IdentifierLogical reference, when literal reference is not known
inv-2: Only urn:oid:2.16.578.1.12.4.1.4.1 (FNR) or urn:oid:2.16.578.1.12.4.1.4.2 (DNR) are allowed as systems to identify patient in this profile.
..... use ?!ΣN0..1codeusual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .

..... system Σ1..1uriThe namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
..... value Σ1..1stringThe value that is unique
Example General: 123456
... participantStatus ?!ΣN1..1codeaccepted | declined | tentative | needs-action
Binding: ParticipationStatus (required): The Participation status of an appointment.


doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
AppointmentResponse.extension:changeConferenceType.value[x]requiredNoBasisVirtualServiceType
AppointmentResponse.identifier.userequiredIdentifierUse
AppointmentResponse.actor.typeextensiblePattern: Patient
AppointmentResponse.actor.identifier.userequiredIdentifierUse
AppointmentResponse.participantStatusrequiredParticipationStatus

Constraints

IdGradePath(s)DetailsRequirements
apr-1errorAppointmentResponseEither the participantType or actor must be specified
: participantType.exists() or actor.exists()
dom-2errorAppointmentResponseIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorAppointmentResponseIf 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-4errorAppointmentResponseIf 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-5errorAppointmentResponseIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceAppointmentResponseA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** elementsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
inv-1errorAppointmentResponseThe 'shortNotice' extension can only be used when the 'actor' is of type 'Patient'.
: extension.where(url = 'http://hl7.no/fhir/StructureDefinition/no-basis-shortnotice').value.exists() and actor.type.value = 'Patient'
inv-2errorAppointmentResponse.actor.identifierOnly urn:oid:2.16.578.1.12.4.1.4.1 (FNR) or urn:oid:2.16.578.1.12.4.1.4.2 (DNR) are allowed as systems to identify patient in this profile.
: system = 'urn:oid:2.16.578.1.12.4.1.4.1' or system = 'urn:oid:2.16.578.1.12.4.1.4.2'
ref-1errorAppointmentResponse.appointment, AppointmentResponse.actorSHALL 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'))
NameFlagsCard.TypeDescription & Constraintsdoco
.. AppointmentResponse C0..*NoBasisAppointmentResponseA reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection
... id Σ0..1idLogical id of this artifact
... meta ΣN0..1MetaMetadata about the resource
... implicitRules ?!ΣN0..1uriA set of rules under which this content was created
... text N0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... Slices for extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... shortNotice N0..1booleanno-basis-shortnotice
URL: http://hl7.no/fhir/StructureDefinition/no-basis-shortnotice
.... id 0..1stringUnique id for inter-element referencing
.... extension N0..0
.... url 1..1uri"http://hl7.no/fhir/StructureDefinition/no-basis-shortnotice"
.... value[x] N0..1booleanPatient can come on short notice.
... changeConferenceType 0..1Codinghn-basis-changeConferenceType
URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-changeConferenceType
Binding: No Basis VirtualServiceType Value Set (required)
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..0
.... url 1..1uri"http://helsenorge.no/fhir/StructureDefinition/hn-basis-changeConferenceType"
.... value[x] 0..1CodingPasient askes for changed conference type.
Binding: No Basis VirtualServiceType Value Set (required)
... modifierExtension ?!N0..*ExtensionExtensions that cannot be ignored
Slice: Unordered, Open by value:url
... identifier Σ1..1IdentifierExternal Ids for this item
.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... use ?!ΣN0..1codeusual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .

.... type ΣN0..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

.... system Σ1..1uriThe namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value Σ1..1stringThe value that is unique
Example General: 123456
.... period ΣCN0..1PeriodTime period when id is/was valid for use
.... assigner ΣCN0..1Reference(Organization)Organization that issued id (may be just text)
... appointment ΣCN1..1Reference(Appointment)Appointment this response relates to
.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... type ΣN0..1uriType the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier ΣN0..1IdentifierLogical reference, when literal reference is not known
.... display ΣN0..1stringText alternative for the resource
... start N0..1instantTime from appointment, or requested new start time
... end N0..1instantTime from appointment, or requested new end time
... participantType ΣN0..*CodeableConceptRole of participant in the appointment
Binding: ParticipantType (extensible): Role of participant in encounter.


.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... coding ΣC0..*CodingCode defined by a terminology system
inv-4: If code is used in a codable consept the system must be used
.... text ΣN0..1stringPlain text representation of the concept
... actor ΣC1..1Reference(Patient)Use only logical reference
.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... type Σ1..1uriType the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).


Required Pattern: Patient
.... identifier ΣC1..1IdentifierLogical reference, when literal reference is not known
inv-2: Only urn:oid:2.16.578.1.12.4.1.4.1 (FNR) or urn:oid:2.16.578.1.12.4.1.4.2 (DNR) are allowed as systems to identify patient in this profile.
..... id 0..1stringUnique id for inter-element referencing
..... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... use ?!ΣN0..1codeusual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .

..... type ΣN0..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

...... id 0..1stringUnique id for inter-element referencing
...... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... coding ΣC0..*CodingCode defined by a terminology system
inv-3: Only FNR or DNR number are allowed as codes to identify patient in this profile.
...... text ΣN0..1stringPlain text representation of the concept
..... system Σ1..1uriThe namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
..... value Σ1..1stringThe value that is unique
Example General: 123456
..... period ΣCN0..1PeriodTime period when id is/was valid for use
..... assigner ΣCN0..1Reference(Organization)Organization that issued id (may be just text)
.... display ΣN0..1stringText alternative for the resource
... participantStatus ?!ΣN1..1codeaccepted | declined | tentative | needs-action
Binding: ParticipationStatus (required): The Participation status of an appointment.

... comment N0..1stringAdditional comments

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
AppointmentResponse.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
AppointmentResponse.extension:changeConferenceType.value[x]requiredNoBasisVirtualServiceType
AppointmentResponse.identifier.userequiredIdentifierUse
AppointmentResponse.identifier.typeextensibleIdentifier Type Codes
AppointmentResponse.appointment.typeextensibleResourceType
AppointmentResponse.participantTypeextensibleParticipantType
AppointmentResponse.actor.typeextensiblePattern: Patient
AppointmentResponse.actor.identifier.userequiredIdentifierUse
AppointmentResponse.actor.identifier.typeextensibleIdentifier Type Codes
AppointmentResponse.participantStatusrequiredParticipationStatus

Constraints

IdGradePath(s)DetailsRequirements
apr-1errorAppointmentResponseEither the participantType or actor must be specified
: participantType.exists() or actor.exists()
dom-2errorAppointmentResponseIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorAppointmentResponseIf 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-4errorAppointmentResponseIf 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-5errorAppointmentResponseIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceAppointmentResponseA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** elementsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
inv-1errorAppointmentResponseThe 'shortNotice' extension can only be used when the 'actor' is of type 'Patient'.
: extension.where(url = 'http://hl7.no/fhir/StructureDefinition/no-basis-shortnotice').value.exists() and actor.type.value = 'Patient'
inv-2errorAppointmentResponse.actor.identifierOnly urn:oid:2.16.578.1.12.4.1.4.1 (FNR) or urn:oid:2.16.578.1.12.4.1.4.2 (DNR) are allowed as systems to identify patient in this profile.
: system = 'urn:oid:2.16.578.1.12.4.1.4.1' or system = 'urn:oid:2.16.578.1.12.4.1.4.2'
inv-3errorAppointmentResponse.actor.identifier.type.codingOnly FNR or DNR number are allowed as codes to identify patient in this profile.
: code = 'FNR' or code = 'DNR'
inv-4errorAppointmentResponse.participantType.codingIf code is used in a codable consept the system must be used
: code > '' implies (system > '' )
per-1errorAppointmentResponse.identifier.period, AppointmentResponse.actor.identifier.periodIf present, start SHALL have a lower value than end
: start.hasValue().not() or end.hasValue().not() or (start <= end)
ref-1errorAppointmentResponse.identifier.assigner, AppointmentResponse.appointment, AppointmentResponse.actor, AppointmentResponse.actor.identifier.assignerSHALL 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 NoBasisAppointmentResponse

Summary

Mandatory: 8 elements
Prohibited: 2 elements

Extensions

This structure refers to these extensions:

Differential View

This structure is derived from NoBasisAppointmentResponse

NameFlagsCard.TypeDescription & Constraintsdoco
.. AppointmentResponse 0..*NoBasisAppointmentResponseA reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection
... changeConferenceType 0..1Codinghn-basis-changeConferenceType
URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-changeConferenceType
Binding: No Basis VirtualServiceType Value Set (required)
.... value[x] 0..1CodingPasient askes for changed conference type.
... identifier 1..1IdentifierExternal Ids for this item
.... system 1..1uriThe namespace for the identifier value
.... value 1..1stringThe value that is unique
... appointment
.... reference 0..0
.... coding C0..*CodingCode defined by a terminology system
inv-4: If code is used in a codable consept the system must be used
... actor 1..1Reference(Patient)Use only logical reference
.... reference 0..0
.... type 1..1uriType the reference refers to (e.g. "Patient")
Required Pattern: Patient
.... identifier C1..1IdentifierLogical reference, when literal reference is not known
inv-2: Only urn:oid:2.16.578.1.12.4.1.4.1 (FNR) or urn:oid:2.16.578.1.12.4.1.4.2 (DNR) are allowed as systems to identify patient in this profile.
..... type
...... coding C0..*CodingCode defined by a terminology system
inv-3: Only FNR or DNR number are allowed as codes to identify patient in this profile.
..... system 1..1uriThe namespace for the identifier value
..... value 1..1stringThe value that is unique

doco Documentation for this format

Constraints

IdGradePath(s)DetailsRequirements
inv-2errorAppointmentResponse.actor.identifierOnly urn:oid:2.16.578.1.12.4.1.4.1 (FNR) or urn:oid:2.16.578.1.12.4.1.4.2 (DNR) are allowed as systems to identify patient in this profile.
: system = 'urn:oid:2.16.578.1.12.4.1.4.1' or system = 'urn:oid:2.16.578.1.12.4.1.4.2'
inv-3errorAppointmentResponse.actor.identifier.type.codingOnly FNR or DNR number are allowed as codes to identify patient in this profile.
: code = 'FNR' or code = 'DNR'
inv-4errorAppointmentResponse.participantType.codingIf code is used in a codable consept the system must be used
: code > '' implies (system > '' )

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. AppointmentResponse C0..*NoBasisAppointmentResponseA reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection
... implicitRules ?!ΣN0..1uriA set of rules under which this content was created
... shortNotice N0..1booleanno-basis-shortnotice
URL: http://hl7.no/fhir/StructureDefinition/no-basis-shortnotice
.... extension N0..0
.... url 1..1uri"http://hl7.no/fhir/StructureDefinition/no-basis-shortnotice"
... changeConferenceType 0..1Codinghn-basis-changeConferenceType
URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-changeConferenceType
Binding: No Basis VirtualServiceType Value Set (required)
.... extension 0..0
.... url 1..1uri"http://helsenorge.no/fhir/StructureDefinition/hn-basis-changeConferenceType"
.... value[x] 0..1CodingPasient askes for changed conference type.
Binding: No Basis VirtualServiceType Value Set (required)
... identifier Σ1..1IdentifierExternal Ids for this item
.... use ?!ΣN0..1codeusual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .

.... system Σ1..1uriThe namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value Σ1..1stringThe value that is unique
Example General: 123456
... appointment ΣCN1..1Reference(Appointment)Appointment this response relates to
... actor ΣC1..1Reference(Patient)Use only logical reference
.... type Σ1..1uriType the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).


Required Pattern: Patient
.... identifier ΣC1..1IdentifierLogical reference, when literal reference is not known
inv-2: Only urn:oid:2.16.578.1.12.4.1.4.1 (FNR) or urn:oid:2.16.578.1.12.4.1.4.2 (DNR) are allowed as systems to identify patient in this profile.
..... use ?!ΣN0..1codeusual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .

..... system Σ1..1uriThe namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
..... value Σ1..1stringThe value that is unique
Example General: 123456
... participantStatus ?!ΣN1..1codeaccepted | declined | tentative | needs-action
Binding: ParticipationStatus (required): The Participation status of an appointment.


doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
AppointmentResponse.extension:changeConferenceType.value[x]requiredNoBasisVirtualServiceType
AppointmentResponse.identifier.userequiredIdentifierUse
AppointmentResponse.actor.typeextensiblePattern: Patient
AppointmentResponse.actor.identifier.userequiredIdentifierUse
AppointmentResponse.participantStatusrequiredParticipationStatus

Constraints

IdGradePath(s)DetailsRequirements
apr-1errorAppointmentResponseEither the participantType or actor must be specified
: participantType.exists() or actor.exists()
dom-2errorAppointmentResponseIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorAppointmentResponseIf 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-4errorAppointmentResponseIf 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-5errorAppointmentResponseIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceAppointmentResponseA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** elementsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
inv-1errorAppointmentResponseThe 'shortNotice' extension can only be used when the 'actor' is of type 'Patient'.
: extension.where(url = 'http://hl7.no/fhir/StructureDefinition/no-basis-shortnotice').value.exists() and actor.type.value = 'Patient'
inv-2errorAppointmentResponse.actor.identifierOnly urn:oid:2.16.578.1.12.4.1.4.1 (FNR) or urn:oid:2.16.578.1.12.4.1.4.2 (DNR) are allowed as systems to identify patient in this profile.
: system = 'urn:oid:2.16.578.1.12.4.1.4.1' or system = 'urn:oid:2.16.578.1.12.4.1.4.2'
ref-1errorAppointmentResponse.appointment, AppointmentResponse.actorSHALL 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

NameFlagsCard.TypeDescription & Constraintsdoco
.. AppointmentResponse C0..*NoBasisAppointmentResponseA reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection
... id Σ0..1idLogical id of this artifact
... meta ΣN0..1MetaMetadata about the resource
... implicitRules ?!ΣN0..1uriA set of rules under which this content was created
... text N0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... Slices for extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... shortNotice N0..1booleanno-basis-shortnotice
URL: http://hl7.no/fhir/StructureDefinition/no-basis-shortnotice
.... id 0..1stringUnique id for inter-element referencing
.... extension N0..0
.... url 1..1uri"http://hl7.no/fhir/StructureDefinition/no-basis-shortnotice"
.... value[x] N0..1booleanPatient can come on short notice.
... changeConferenceType 0..1Codinghn-basis-changeConferenceType
URL: http://helsenorge.no/fhir/StructureDefinition/hn-basis-changeConferenceType
Binding: No Basis VirtualServiceType Value Set (required)
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..0
.... url 1..1uri"http://helsenorge.no/fhir/StructureDefinition/hn-basis-changeConferenceType"
.... value[x] 0..1CodingPasient askes for changed conference type.
Binding: No Basis VirtualServiceType Value Set (required)
... modifierExtension ?!N0..*ExtensionExtensions that cannot be ignored
Slice: Unordered, Open by value:url
... identifier Σ1..1IdentifierExternal Ids for this item
.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... use ?!ΣN0..1codeusual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .

.... type ΣN0..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

.... system Σ1..1uriThe namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
.... value Σ1..1stringThe value that is unique
Example General: 123456
.... period ΣCN0..1PeriodTime period when id is/was valid for use
.... assigner ΣCN0..1Reference(Organization)Organization that issued id (may be just text)
... appointment ΣCN1..1Reference(Appointment)Appointment this response relates to
.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... type ΣN0..1uriType the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).

.... identifier ΣN0..1IdentifierLogical reference, when literal reference is not known
.... display ΣN0..1stringText alternative for the resource
... start N0..1instantTime from appointment, or requested new start time
... end N0..1instantTime from appointment, or requested new end time
... participantType ΣN0..*CodeableConceptRole of participant in the appointment
Binding: ParticipantType (extensible): Role of participant in encounter.


.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... coding ΣC0..*CodingCode defined by a terminology system
inv-4: If code is used in a codable consept the system must be used
.... text ΣN0..1stringPlain text representation of the concept
... actor ΣC1..1Reference(Patient)Use only logical reference
.... id 0..1stringUnique id for inter-element referencing
.... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... type Σ1..1uriType the reference refers to (e.g. "Patient")
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).


Required Pattern: Patient
.... identifier ΣC1..1IdentifierLogical reference, when literal reference is not known
inv-2: Only urn:oid:2.16.578.1.12.4.1.4.1 (FNR) or urn:oid:2.16.578.1.12.4.1.4.2 (DNR) are allowed as systems to identify patient in this profile.
..... id 0..1stringUnique id for inter-element referencing
..... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... use ?!ΣN0..1codeusual | official | temp | secondary | old (If known)
Binding: IdentifierUse (required): Identifies the purpose for this identifier, if known .

..... type ΣN0..1CodeableConceptDescription of identifier
Binding: Identifier Type Codes (extensible): A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

...... id 0..1stringUnique id for inter-element referencing
...... extension N0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... coding ΣC0..*CodingCode defined by a terminology system
inv-3: Only FNR or DNR number are allowed as codes to identify patient in this profile.
...... text ΣN0..1stringPlain text representation of the concept
..... system Σ1..1uriThe namespace for the identifier value
Example General: http://www.acme.com/identifiers/patient
..... value Σ1..1stringThe value that is unique
Example General: 123456
..... period ΣCN0..1PeriodTime period when id is/was valid for use
..... assigner ΣCN0..1Reference(Organization)Organization that issued id (may be just text)
.... display ΣN0..1stringText alternative for the resource
... participantStatus ?!ΣN1..1codeaccepted | declined | tentative | needs-action
Binding: ParticipationStatus (required): The Participation status of an appointment.

... comment N0..1stringAdditional comments

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet / Code
AppointmentResponse.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
AppointmentResponse.extension:changeConferenceType.value[x]requiredNoBasisVirtualServiceType
AppointmentResponse.identifier.userequiredIdentifierUse
AppointmentResponse.identifier.typeextensibleIdentifier Type Codes
AppointmentResponse.appointment.typeextensibleResourceType
AppointmentResponse.participantTypeextensibleParticipantType
AppointmentResponse.actor.typeextensiblePattern: Patient
AppointmentResponse.actor.identifier.userequiredIdentifierUse
AppointmentResponse.actor.identifier.typeextensibleIdentifier Type Codes
AppointmentResponse.participantStatusrequiredParticipationStatus

Constraints

IdGradePath(s)DetailsRequirements
apr-1errorAppointmentResponseEither the participantType or actor must be specified
: participantType.exists() or actor.exists()
dom-2errorAppointmentResponseIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorAppointmentResponseIf 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-4errorAppointmentResponseIf 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-5errorAppointmentResponseIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceAppointmentResponseA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** elementsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
inv-1errorAppointmentResponseThe 'shortNotice' extension can only be used when the 'actor' is of type 'Patient'.
: extension.where(url = 'http://hl7.no/fhir/StructureDefinition/no-basis-shortnotice').value.exists() and actor.type.value = 'Patient'
inv-2errorAppointmentResponse.actor.identifierOnly urn:oid:2.16.578.1.12.4.1.4.1 (FNR) or urn:oid:2.16.578.1.12.4.1.4.2 (DNR) are allowed as systems to identify patient in this profile.
: system = 'urn:oid:2.16.578.1.12.4.1.4.1' or system = 'urn:oid:2.16.578.1.12.4.1.4.2'
inv-3errorAppointmentResponse.actor.identifier.type.codingOnly FNR or DNR number are allowed as codes to identify patient in this profile.
: code = 'FNR' or code = 'DNR'
inv-4errorAppointmentResponse.participantType.codingIf code is used in a codable consept the system must be used
: code > '' implies (system > '' )
per-1errorAppointmentResponse.identifier.period, AppointmentResponse.actor.identifier.periodIf present, start SHALL have a lower value than end
: start.hasValue().not() or end.hasValue().not() or (start <= end)
ref-1errorAppointmentResponse.identifier.assigner, AppointmentResponse.appointment, AppointmentResponse.actor, AppointmentResponse.actor.identifier.assignerSHALL 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 NoBasisAppointmentResponse

Summary

Mandatory: 8 elements
Prohibited: 2 elements

Extensions

This structure refers to these extensions:

 

Other representations of profile: CSV, Excel, Schematron