description: Base profile for Helsenorge Appointment information. Defined by Helsenorge based on national profile. package_name: no.nhn.fhir.helsenorge.profiles derivation: constraint name: HnBasisAppointment type: Appointment elements: description: constraint: must-be-max-1000-chars: {human: Length MUST be <= 1000, source: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-appointment', severity: error, expression: $this.length() <= 1000} index: 23 serviceCategory: binding: {strength: required, valueSet: 'http://helsenorge.no/fhir/ValueSet/hn-appointment-ServiceCategory-code-vs'} index: 15 elements: coding: constraint: inv-4: {human: If code is used in a codable consept the system must be used, source: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-appointment', severity: error, expression: code > '' implies (system > '' )} index: 16 meta: short: 'Information about use of metadata in FHIR resources in helsenorge:' index: 0 elements: lastUpdated: {short: LastUpdated should always be present, index: 1} required: [lastUpdated] specialty: elements: coding: constraint: inv-4: {human: If code is used in a codable consept the system must be used, source: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-appointment', severity: error, expression: code > '' implies (system > '' )} index: 18 cancelationReason: short: Reason for cancelation binding: {strength: preferred, valueSet: 'urn:oid:2.16.578.1.12.4.1.1.8445'} index: 13 elements: coding: constraint: inv-4: {human: If code is used in a codable consept the system must be used, source: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-appointment', severity: error, expression: code > '' implies (system > '' )} index: 14 patientInstruction: constraint: must-be-max-1000-chars: {human: Length MUST be <= 1000, source: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-appointment', severity: error, expression: $this.length() <= 1000} index: 25 reasonCode: elements: coding: constraint: inv-4: {human: If code is used in a codable consept the system must be used, source: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-appointment', severity: error, expression: code > '' implies (system > '' )} index: 22 participant: constraint: appointment-participant-actor-patient-reference-identifier: {human: When actor is a Patient logical reference MUST be used, source: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-appointment', severity: warning, expression: actor.type = 'Patient' implies actor.identifier.exists()} appointment-participant-actor-patient-reference-reference: {human: 'When actor is a Patient literal reference (relative, internal or absolute) reference MUST not be used', source: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-appointment', severity: warning, expression: (actor.type = 'Patient') implies actor.reference.exists().not()} index: 26 elements: type: elements: coding: constraint: inv-4: {human: If code is used in a codable consept the system must be used, source: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-appointment', severity: error, expression: code > '' implies (system > '' )} index: 27 actor: type: Reference short: When actor is a Patient logical reference MUST be used refers: ['http://hl7.no/fhir/StructureDefinition/no-basis-HealthcareService', 'http://hl7.no/fhir/StructureDefinition/no-basis-Location', 'http://hl7.no/fhir/StructureDefinition/no-basis-Patient', 'http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner', 'http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole', 'http://hl7.no/fhir/StructureDefinition/no-basis-RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Device'] index: 28 required: [actor] serviceType: elements: coding: constraint: inv-4: {human: If code is used in a codable consept the system must be used, source: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-appointment', severity: error, expression: code > '' implies (system > '' )} index: 17 extension: index: 2 slicing: slices: virtualService: match: {} schema: index: 2 extensions: channelType: url: null index: 3 elements: value: choices: [] index: 5 elements: extension: index: 3 slicing: slices: channelType: match: {} schema: index: 3 elements: value: choices: [] index: 5 recurring: match: {} schema: {type: Extension, mustSupport: true, url: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-Recurring', index: 6} min: 0 max: 1 postponementReason: match: {} schema: {type: Extension, url: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-postponementreason', index: 7} min: 0 max: 1 consultationType: match: {} schema: {type: Extension, mustSupport: true, url: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-consultationType', index: 8} min: 0 max: 1 supportingInformation: {short: Spesial instructions for use., index: 24} appointmentType: index: 19 elements: coding: constraint: inv-4: {human: If code is used in a codable consept the system must be used, source: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-appointment', severity: error, expression: code > '' implies (system > '' )} index: 20 slicing: slices: helsenorge: match: {} schema: short: Codes from value set mustSupport: true binding: {strength: required, valueSet: 'http://helsenorge.no/fhir/ValueSet/hn-appointment-AppointmentType-code-vs'} index: 21 min: 0 max: 1 identifier: index: 9 elements: system: {index: 10} value: {index: 11} assigner: type: Reference refers: ['http://hl7.no/fhir/StructureDefinition/no-basis-Organization', 'http://hl7.org/fhir/StructureDefinition/Organization'] index: 12 required: [assigner, value, system] package_version: 2.0.0-beta extensions: virtualService: url: null index: 2 extensions: channelType: url: null index: 3 elements: value: choices: [] index: 5 elements: extension: index: 3 slicing: slices: channelType: match: {} schema: index: 3 elements: value: choices: [] index: 5 recurring: {url: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-Recurring', min: 0, max: 1, type: Extension, mustSupport: true, index: 6} postponementReason: {url: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-postponementreason', min: 0, max: 1, type: Extension, index: 7} consultationType: {url: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-consultationType', min: 0, max: 1, type: Extension, mustSupport: true, index: 8} class: profile kind: resource url: http://helsenorge.no/fhir/StructureDefinition/hn-basis-appointment base: http://hl7.no/fhir/StructureDefinition/no-basis-Appointment version: 1.0.1 required: [supportingInformation, identifier, appointmentType, serviceCategory]