description: 'Readiness: [Experimental](https://simplifier.net/guide/Visual-overview/Home/Review-status-and-releases.page.md?version=current#readiness-transactionbundle).\n\nProfile base: FHIR R4 Bundle (http://hl7.org/fhir/StructureDefinition/Bundle).\n\nDraft submission profile for an EHR to send one or more related DigiDOT resource changes to central storage as a FHIR R4 transaction. Constrains request shape, declared and actual content profiles, explicit target identities and internal URN references. A valid Bundle still requires DENT authorization, patient and reference checks, supported-operation checks and atomic execution. This proposal is not an active server contract.' package_name: novari.digidot derivation: constraint name: DigidotTransactionBundleNo type: Bundle elements: meta: elements: profile: {short: Declare this submission profile, index: 0} identifier: {index: 1} type: pattern: {type: Code, value: transaction} index: 2 entry: short: One or more writes that must succeed together constraint: dd-txb-5: {human: 'Use POST, PUT or DELETE; reads, PATCH and operations are outside this submission workflow.', source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no', severity: error, expression: request.method = 'POST' or request.method = 'PUT' or request.method = 'DELETE'} dd-txb-6: {human: POST and PUT entries need a resource payload; DELETE entries must not have one., source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no', severity: error, expression: (request.method = 'POST' or request.method = 'PUT') = resource.exists()} dd-txb-7: {human: 'For POST, request.url must be the payload resource type, without an id, query or server base.', source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no', severity: error, expression: request.method = 'POST' implies (resource.exists() and request.url = resource.type().name)} dd-txb-8: {human: 'For PUT, request.url must equal the payload resource type and id: ResourceType/id.', source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no', severity: error, expression: request.method = 'PUT' implies (resource.id.hasValue() and request.url = (resource.type().name & '/' & resource.id))} dd-txb-9: {human: 'For DELETE, use an explicit ResourceType/id from the content catalogue; conditional deletion is not supported.', source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no', severity: error, expression: 'request.method = ''DELETE'' implies request.url.matches(''^(AllergyIntolerance|Appointment|ChargeItem|Claim|Composition|Condition|Device|DocumentReference|Encounter|EpisodeOfCare|HealthcareService|Location|MedicationAdministration|MedicationRequest|MedicationStatement|Observation|Organization|Patient|Practitioner|PractitionerRole|Procedure|RelatedPerson|ServiceRequest)/[A-Za-z0-9.-]{1,64}$'')'} dd-txb-10: {human: DELETE entries do not define a fullUrl for other submitted resources to reference., source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no', severity: error, expression: request.method = 'DELETE' implies fullUrl.empty()} dd-txb-11: {human: ifNoneExist is a create condition and may only be supplied on POST., source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no', severity: error, expression: request.ifNoneExist.exists() implies request.method = 'POST'} index: 3 elements: fullUrl: {short: Unique identity for reference resolution in this transaction, index: 4} resource: type: Resource short: Content conforming to a listed DigiDOT or national profile constraint: dd-txb-12: {human: Declare at least one permitted DigiDOT or reused national content profile on each payload., source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no', severity: error, expression: 'meta.profile.where($this = ''https://novari.no/fhir/digidot/StructureDefinition/digidot-AllergyIntolerance-no'' or startsWith(''https://novari.no/fhir/digidot/StructureDefinition/digidot-AllergyIntolerance-no|'') or $this = ''https://novari.no/fhir/digidot/StructureDefinition/digidot-Appointment-no'' or startsWith(''https://novari.no/fhir/digidot/StructureDefinition/digidot-Appointment-no|'') or $this = ''https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no'' or startsWith(''https://novari.no/fhir/digidot/StructureDefinition/digidot-ChargeItem-no|'') or $this = ''https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no'' or startsWith(''https://novari.no/fhir/digidot/StructureDefinition/digidot-Claim-no|'') or $this = ''https://novari.no/fhir/digidot/StructureDefinition/digidot-DentalContactNote-no'' or startsWith(''https://novari.no/fhir/digidot/StructureDefinition/digidot-DentalContactNote-no|'') or $this = ''https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no'' or startsWith(''https://novari.no/fhir/digidot/StructureDefinition/digidot-Condition-no|'') or $this = ''https://novari.no/fhir/digidot/StructureDefinition/digidot-Device-no'' or startsWith(''https://novari.no/fhir/digidot/StructureDefinition/digidot-Device-no|'') or $this = ''http://hl7.no/fhir/StructureDefinition/no-basis-DocumentReference'' or startsWith(''http://hl7.no/fhir/StructureDefinition/no-basis-DocumentReference|'') or $this = ''https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no'' or startsWith(''https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no|'') or $this = ''https://novari.no/fhir/digidot/StructureDefinition/digidot-EpisodeOfCare-no'' or startsWith(''https://novari.no/fhir/digidot/StructureDefinition/digidot-EpisodeOfCare-no|'') or $this = ''http://hl7.no/fhir/StructureDefinition/no-basis-HealthcareService'' or startsWith(''http://hl7.no/fhir/StructureDefinition/no-basis-HealthcareService|'') or $this = ''http://hl7.no/fhir/StructureDefinition/no-basis-Location'' or startsWith(''http://hl7.no/fhir/StructureDefinition/no-basis-Location|'') or $this = ''https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationAdministration-no'' or startsWith(''https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationAdministration-no|'') or $this = ''https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationRequest-no'' or startsWith(''https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationRequest-no|'') or $this = ''https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationStatement-no'' or startsWith(''https://novari.no/fhir/digidot/StructureDefinition/digidot-MedicationStatement-no|'') or $this = ''https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no'' or startsWith(''https://novari.no/fhir/digidot/StructureDefinition/digidot-Observation-no|'') or $this = ''http://hl7.no/fhir/StructureDefinition/no-basis-Organization'' or startsWith(''http://hl7.no/fhir/StructureDefinition/no-basis-Organization|'') or $this = ''https://novari.no/fhir/digidot/StructureDefinition/digidot-Patient-no'' or startsWith(''https://novari.no/fhir/digidot/StructureDefinition/digidot-Patient-no|'') or $this = ''http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner'' or startsWith(''http://hl7.no/fhir/StructureDefinition/no-basis-Practitioner|'') or $this = ''http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole'' or startsWith(''http://hl7.no/fhir/StructureDefinition/no-basis-PractitionerRole|'') or $this = ''https://novari.no/fhir/digidot/StructureDefinition/digidot-Procedure-no'' or startsWith(''https://novari.no/fhir/digidot/StructureDefinition/digidot-Procedure-no|'') or $this = ''http://hl7.no/fhir/StructureDefinition/no-basis-RelatedPerson'' or startsWith(''http://hl7.no/fhir/StructureDefinition/no-basis-RelatedPerson|'') or $this = ''https://novari.no/fhir/digidot/StructureDefinition/digidot-ServiceRequest-no'' or startsWith(''https://novari.no/fhir/digidot/StructureDefinition/digidot-ServiceRequest-no|'')).exists()'} dd-txb-13: {human: Use a resource type listed in the proposed content profile catalogue., source: 'https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no', severity: error, expression: type().name in ('AllergyIntolerance' | 'Appointment' | 'ChargeItem' | 'Claim' | 'Composition' | 'Condition' | 'Device' | 'DocumentReference' | 'Encounter' | 'EpisodeOfCare' | 'HealthcareService' | 'Location' | 'MedicationAdministration' | 'MedicationRequest' | 'MedicationStatement' | 'Observation' | 'Organization' | 'Patient' | 'Practitioner' | 'PractitionerRole' | 'Procedure' | 'RelatedPerson' | 'ServiceRequest')} index: 5 request: short: Create, update or delete within the transaction index: 6 elements: ifMatch: {index: 7} ifNoneExist: {index: 8} slicing: rules: open ordered: false discriminator: - {path: resource, type: type} min: 1 slices: ServiceRequest: match: {} schema: short: ServiceRequest create or update entries array: true index: 53 elements: resource: {type: ServiceRequest, index: 54} required: [resource] Observation: match: {} schema: short: Observation create or update entries array: true index: 39 elements: resource: {type: Observation, index: 40} required: [resource] Appointment: match: {} schema: short: Appointment create or update entries array: true index: 11 elements: resource: {type: Appointment, index: 12} required: [resource] EpisodeOfCare: match: {} schema: short: EpisodeOfCare create or update entries array: true index: 27 elements: resource: {type: EpisodeOfCare, index: 28} required: [resource] MedicationAdministration: match: {} schema: short: MedicationAdministration create or update entries array: true index: 33 elements: resource: {type: MedicationAdministration, index: 34} required: [resource] DocumentReference: match: {} schema: short: DocumentReference create or update entries array: true index: 23 elements: resource: {type: DocumentReference, index: 24} required: [resource] ChargeItem: match: {} schema: short: ChargeItem create or update entries array: true index: 13 elements: resource: {type: ChargeItem, index: 14} required: [resource] Composition: match: {} schema: short: Composition create or update entries array: true index: 17 elements: resource: {type: Composition, index: 18} required: [resource] PractitionerRole: match: {} schema: short: PractitionerRole create or update entries array: true index: 47 elements: resource: {type: PractitionerRole, index: 48} required: [resource] HealthcareService: match: {} schema: short: HealthcareService create or update entries array: true index: 29 elements: resource: {type: HealthcareService, index: 30} required: [resource] Patient: match: {} schema: short: Patient create or update entries array: true index: 43 elements: resource: {type: Patient, index: 44} required: [resource] Practitioner: match: {} schema: short: Practitioner create or update entries array: true index: 45 elements: resource: {type: Practitioner, index: 46} required: [resource] MedicationStatement: match: {} schema: short: MedicationStatement create or update entries array: true index: 37 elements: resource: {type: MedicationStatement, index: 38} required: [resource] Claim: match: {} schema: short: Claim create or update entries array: true index: 15 elements: resource: {type: Claim, index: 16} required: [resource] MedicationRequest: match: {} schema: short: MedicationRequest create or update entries array: true index: 35 elements: resource: {type: MedicationRequest, index: 36} required: [resource] Encounter: match: {} schema: short: Encounter create or update entries array: true index: 25 elements: resource: {type: Encounter, index: 26} required: [resource] RelatedPerson: match: {} schema: short: RelatedPerson create or update entries array: true index: 51 elements: resource: {type: RelatedPerson, index: 52} required: [resource] Condition: match: {} schema: short: Condition create or update entries array: true index: 19 elements: resource: {type: Condition, index: 20} required: [resource] Procedure: match: {} schema: short: Procedure create or update entries array: true index: 49 elements: resource: {type: Procedure, index: 50} required: [resource] Location: match: {} schema: short: Location create or update entries array: true index: 31 elements: resource: {type: Location, index: 32} required: [resource] Organization: match: {} schema: short: Organization create or update entries array: true index: 41 elements: resource: {type: Organization, index: 42} required: [resource] Device: match: {} schema: short: Device create or update entries array: true index: 21 elements: resource: {type: Device, index: 22} required: [resource] AllergyIntolerance: match: {} schema: short: AllergyIntolerance create or update entries array: true index: 9 elements: resource: {type: AllergyIntolerance, index: 10} required: [resource] package_version: 0.3.0 class: profile kind: resource url: https://novari.no/fhir/digidot/StructureDefinition/digidot-TransactionBundle-no base: http://hl7.org/fhir/StructureDefinition/Bundle version: 0.1.0 required: [entry]