description: 'Provenance de la demande $book. Multi-agents : le portail source (toujours présent, porte la tuile REO et le lieu Clinique d''origine via Device.owner) et l''agent de réorientation REO (cas de réorientation : l''organisation d''origine — clinique, institution hospitalière ou CIUSS — est portée par agent[professionnelREO].onBehalfOf, en logical reference vers une ressource Organization — jamais matérialisée dans le payload). La région administrative du Québec (codes 01 à 17) est portée par Provenance.location en logical reference vers une Location identifiée par son code de région. Règle métier : la région administrative DOIT être fournie lorsque la tuile du portail (Device.property[tuilePortail].valueCode) est `811`, `911` ou `MAGROSSESSE` ; pour les autres tuiles, elle reste optionnelle.' package_name: ca.qc.sq.sgrdv derivation: constraint name: SGRDVBaseBookRequestProvenance type: Provenance elements: contained: index: 0 slicing: rules: open discriminator: - {path: $this, type: type} min: 1 slices: portail: match: {} schema: {type: Device, _required: true, index: 1} min: 1 max: 1 orienteur: match: {} schema: {type: RelatedPerson, index: 2} min: 0 max: 1 target: {mustSupport: true, index: 3} recorded: {mustSupport: true, index: 4} location: mustSupport: true index: 5 elements: reference: {index: 6} type: pattern: {type: Uri, value: Location} index: 7 identifier: index: 8 elements: type: index: 9 elements: coding: index: 10 elements: system: pattern: {type: Uri, value: 'http://sante.quebec/fhir/CodeSystem/sgrdv-identifier-type'} index: 11 code: pattern: {type: Code, value: regionAdmin} index: 12 required: [coding] system: pattern: {type: Uri, value: 'http://sante.quebec/fhir/NamingSystem/REGIONADMIN'} index: 13 value: {index: 14} required: [value, type] required: [identifier] agent: index: 15 slicing: rules: open discriminator: - {path: who.type, type: value} min: null slices: portail: match: who: {type: Device} schema: mustSupport: true _required: true index: 16 elements: who: type: Reference mustSupport: true refers: ['http://sante.quebec/fhir/StructureDefinition/sgrdv-base-book-source-device'] index: 17 elements: reference: pattern: {type: String, value: '#portail'} index: 18 type: pattern: {type: Uri, value: Device} index: 19 required: [type] professionnelREO: match: who: {type: RelatedPerson} schema: mustSupport: true index: 20 elements: who: type: Reference mustSupport: true refers: ['http://sante.quebec/fhir/StructureDefinition/sgrdv-base-book-orienteur-related-person'] index: 21 elements: reference: pattern: {type: String, value: '#orienteur'} index: 22 type: pattern: {type: Uri, value: RelatedPerson} index: 23 required: [type] onBehalfOf: type: Reference mustSupport: true refers: ['http://sante.quebec/fhir/StructureDefinition/sgrdv-base-book-organization-ciuss', 'http://sante.quebec/fhir/StructureDefinition/sgrdv-base-book-organization-institution', 'http://sante.quebec/fhir/StructureDefinition/sgrdv-base-find-organization'] index: 24 elements: reference: {index: 25} type: pattern: {type: Uri, value: Organization} index: 26 identifier: index: 27 elements: type: index: 28 elements: coding: index: 29 elements: system: pattern: {type: Uri, value: 'http://sante.quebec/fhir/CodeSystem/sgrdv-identifier-type'} index: 30 code: {index: 31} required: [code] required: [coding] system: {index: 32} value: {index: 33} required: [value, type, system] required: [identifier] package_version: 1.1.0 class: profile kind: resource url: http://sante.quebec/fhir/StructureDefinition/sgrdv-base-book-request-provenance base: http://hl7.org/fhir/StructureDefinition/Provenance version: 1.1.0 required: [contained]