description: Base profile for Helsenorge Appointment information. Defined by Helsenorge based on national profile. package_name: helsenorge.profiler derivation: constraint name: HnBasisAppointment type: Appointment elements: description: constraint: must-be-max-1000-chars: {human: Length MUST be <= 1000, source: 'http://example.org/StructureDefinition/hn-basis-appointment', severity: error, expression: $this.length() <= 1000} index: 31 serviceCategory: binding: {strength: required, valueSet: 'http://helsenorge.no/fhir/ValueSet/hn-appointment-ServiceCategory-code-vs'} index: 19 elements: coding: constraint: inv-4: {human: If code is used in a codable consept the system must be used, source: 'http://example.org/StructureDefinition/hn-basis-appointment', severity: error, expression: code > '' implies (system > '' )} index: 20 slot: {index: 34} 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: index: 23 elements: coding: constraint: inv-4: {human: If code is used in a codable consept the system must be used, source: 'http://example.org/StructureDefinition/hn-basis-appointment', severity: error, expression: code > '' implies (system > '' )} index: 24 cancelationReason: short: Reason for cancelation binding: {strength: preferred, valueSet: 'urn:oid:2.16.578.1.12.4.1.1.8445'} index: 17 elements: coding: constraint: inv-4: {human: If code is used in a codable consept the system must be used, source: 'http://example.org/StructureDefinition/hn-basis-appointment', severity: error, expression: code > '' implies (system > '' )} index: 18 requestedPeriod: {index: 40} patientInstruction: constraint: must-be-max-1000-chars: {human: Length MUST be <= 1000, source: 'http://example.org/StructureDefinition/hn-basis-appointment', severity: error, expression: $this.length() <= 1000} index: 36 implicitRules: {index: 2} start: {index: 33} reasonCode: elements: coding: constraint: inv-4: {human: If code is used in a codable consept the system must be used, source: 'http://example.org/StructureDefinition/hn-basis-appointment', severity: error, expression: code > '' implies (system > '' )} index: 28 participant: constraint: appointment-participant-actor-patient-reference-identifier: {human: When actor is a Patient logical reference MUST be used, source: 'http://example.org/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://example.org/StructureDefinition/hn-basis-appointment', severity: warning, expression: (actor.type = 'Patient') implies actor.reference.exists().not()} index: 37 elements: type: elements: coding: constraint: inv-4: {human: If code is used in a codable consept the system must be used, source: 'http://example.org/StructureDefinition/hn-basis-appointment', severity: error, expression: code > '' implies (system > '' )} index: 38 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: 39 required: [actor] serviceType: index: 21 elements: coding: constraint: inv-4: {human: If code is used in a codable consept the system must be used, source: 'http://example.org/StructureDefinition/hn-basis-appointment', severity: error, expression: code > '' implies (system > '' )} index: 22 extension: index: 5 slicing: slices: virtualService: match: {} schema: index: 5 extensions: channelType: url: null index: 6 elements: value: choices: [] index: 8 elements: extension: index: 6 slicing: slices: channelType: match: {} schema: index: 6 elements: value: choices: [] index: 8 recurring: match: {} schema: {type: Extension, mustSupport: true, url: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-Recurring', index: 9} min: 0 max: 1 postponementReason: match: {} schema: {type: Extension, url: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-postponementreason', index: 10} min: 0 max: 1 consultationType: match: {} schema: {type: Extension, mustSupport: true, url: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-consultationType', index: 11} min: 0 max: 1 supportingInformation: {short: Spesial instructions for use., index: 32} priority: {index: 30} appointmentType: index: 25 elements: coding: constraint: inv-4: {human: If code is used in a codable consept the system must be used, source: 'http://example.org/StructureDefinition/hn-basis-appointment', severity: error, expression: code > '' implies (system > '' )} index: 26 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: 27 min: 0 max: 1 status: binding: {strength: required, valueSet: 'http://example.org/ValueSet/my-appointment-status-vs'} index: 16 language: {index: 3} comment: {index: 35} identifier: index: 12 elements: system: {index: 13} value: {index: 14} assigner: type: Reference refers: ['http://hl7.no/fhir/StructureDefinition/no-basis-Organization', 'http://hl7.org/fhir/StructureDefinition/Organization'] index: 15 required: [assigner, value, system] reasonReference: {index: 29} text: {index: 4} package_version: 2.0.3 extensions: virtualService: url: null index: 5 extensions: channelType: url: null index: 6 elements: value: choices: [] index: 8 elements: extension: index: 6 slicing: slices: channelType: match: {} schema: index: 6 elements: value: choices: [] index: 8 recurring: {url: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-Recurring', min: 0, max: 1, type: Extension, mustSupport: true, index: 9} postponementReason: {url: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-postponementreason', min: 0, max: 1, type: Extension, index: 10} consultationType: {url: 'http://helsenorge.no/fhir/StructureDefinition/hn-basis-consultationType', min: 0, max: 1, type: Extension, mustSupport: true, index: 11} class: profile kind: resource url: http://example.org/StructureDefinition/hn-basis-appointment base: http://hl7.no/fhir/StructureDefinition/no-basis-Appointment version: 2.0.0 required: [supportingInformation, start, identifier, appointmentType, serviceCategory]