description: Versioned, partitioned envelope for declarative relational and aggregate billing rules.\n\nThe Library contains one schema-identified JSON payload. It does not carry CQL or\nFHIRPath execution logic. Rule semantics are defined by the billing-rule\nvocabularies and the referenced payload schema; a private evaluator consumes the\nresolved artifact. One instance represents one source, catalog scope, effective\nperiod, and optional contract, tenant, or specialty partition. package_name: de.cognovis.fhir.praxis derivation: constraint name: PraxisBillingRuleSetLibrary type: Library elements: dataRequirement: {index: 67} content: mustSupport: true index: 68 elements: contentType: pattern: {type: Code, value: application/json} mustSupport: true index: 69 language: {index: 70} data: {mustSupport: true, index: 71} url: {index: 72} title: {mustSupport: true, index: 73} creation: {mustSupport: true, index: 74} required: [contentType, data] name: {mustSupport: true, index: 12} useContext: mustSupport: true array: true min: 3 index: 17 slicing: rules: open discriminator: - {path: code, type: pattern} min: 3 slices: billingRegime: match: code: {code: billing-regime, system: 'https://fhir.cognovis.de/praxis/CodeSystem/billing-rule-use-context'} schema: mustSupport: true _required: true index: 18 elements: code: pattern: type: Coding value: {code: billing-regime, system: 'https://fhir.cognovis.de/praxis/CodeSystem/billing-rule-use-context'} index: 19 value: choices: [valueCodeableConcept] index: 21 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 22} value[x]: elements: coding: index: 23 elements: system: {index: 24} code: {index: 25} required: [system, code] required: [coding] catalogScope: match: code: {code: catalog-scope, system: 'https://fhir.cognovis.de/praxis/CodeSystem/billing-rule-use-context'} schema: mustSupport: true _required: true index: 26 elements: code: pattern: type: Coding value: {code: catalog-scope, system: 'https://fhir.cognovis.de/praxis/CodeSystem/billing-rule-use-context'} index: 27 value: choices: [valueCodeableConcept] index: 29 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 30} value[x]: elements: coding: index: 31 elements: system: {index: 32} code: {index: 33} required: [system, code] required: [coding] source: match: code: {code: source, system: 'https://fhir.cognovis.de/praxis/CodeSystem/billing-rule-use-context'} schema: mustSupport: true _required: true index: 34 elements: code: pattern: type: Coding value: {code: source, system: 'https://fhir.cognovis.de/praxis/CodeSystem/billing-rule-use-context'} index: 35 value: choices: [valueCodeableConcept] index: 37 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 38} value[x]: elements: coding: index: 39 elements: system: {index: 40} code: {index: 41} required: [system, code] required: [coding] contract: match: code: {code: contract, system: 'https://fhir.cognovis.de/praxis/CodeSystem/billing-rule-use-context'} schema: mustSupport: true array: true index: 42 elements: code: pattern: type: Coding value: {code: contract, system: 'https://fhir.cognovis.de/praxis/CodeSystem/billing-rule-use-context'} index: 43 value: choices: [valueCodeableConcept] index: 45 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 46} value[x]: elements: coding: index: 47 elements: system: {index: 48} code: {index: 49} required: [system, code] required: [coding] tenant: match: code: {code: tenant, system: 'https://fhir.cognovis.de/praxis/CodeSystem/billing-rule-use-context'} schema: mustSupport: true index: 50 elements: code: pattern: type: Coding value: {code: tenant, system: 'https://fhir.cognovis.de/praxis/CodeSystem/billing-rule-use-context'} index: 51 value: choices: [valueReference] index: 53 valueReference: type: Reference choiceOf: value refers: ['http://hl7.org/fhir/StructureDefinition/Organization'] index: 54 specialty: match: code: {code: specialty, system: 'https://fhir.cognovis.de/praxis/CodeSystem/billing-rule-use-context'} schema: mustSupport: true array: true index: 55 elements: code: pattern: type: Coding value: {code: specialty, system: 'https://fhir.cognovis.de/praxis/CodeSystem/billing-rule-use-context'} index: 56 value: choices: [valueCodeableConcept] index: 58 valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 59} value[x]: elements: coding: index: 60 elements: system: {index: 61} code: {index: 62} required: [system, code] required: [coding] type: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: asset-collection, system: 'http://terminology.hl7.org/CodeSystem/library-type'} index: 16 experimental: mustSupport: true pattern: {type: Boolean, value: false} index: 15 title: {mustSupport: true, index: 13} extension: array: true min: 2 index: 0 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: 2 slices: sourceManifest: match: {url: null} schema: {type: Extension, mustSupport: true, url: 'https://fhir.cognovis.de/praxis/StructureDefinition/billing-source-manifest', index: 1} min: 1 max: 1 payloadSchema: match: {url: null} schema: {type: Extension, mustSupport: true, url: 'https://fhir.cognovis.de/praxis/StructureDefinition/billing-rule-payload-schema', index: 2} min: 1 max: 1 status: binding: {strength: required, valueSet: 'https://fhir.cognovis.de/praxis/ValueSet/billing-rule-set-status'} mustSupport: true index: 14 url: {mustSupport: true, index: 3} identifier: mustSupport: true array: true min: 2 index: 4 slicing: rules: open discriminator: - {path: system, type: value} min: 2 slices: ruleSetId: match: {system: 'https://fhir.cognovis.de/praxis/sid/billing-rule-set-id'} schema: mustSupport: true _required: true index: 5 elements: system: pattern: {type: Uri, value: 'https://fhir.cognovis.de/praxis/sid/billing-rule-set-id'} index: 6 value: {index: 7} required: [value, system] sourceBatchId: match: {system: 'https://fhir.cognovis.de/praxis/sid/billing-rule-source-batch-id'} schema: mustSupport: true _required: true index: 8 elements: system: pattern: {type: Uri, value: 'https://fhir.cognovis.de/praxis/sid/billing-rule-source-batch-id'} index: 9 value: {index: 10} required: [value, system] version: {mustSupport: true, index: 11} parameter: {index: 66} effectivePeriod: mustSupport: true index: 63 elements: start: {mustSupport: true, index: 64} end: {mustSupport: true, index: 65} required: [start, end] package_version: 0.100.1 extensions: sourceManifest: {url: 'https://fhir.cognovis.de/praxis/StructureDefinition/billing-source-manifest', min: 1, max: 1, type: Extension, mustSupport: true, index: 1} payloadSchema: {url: 'https://fhir.cognovis.de/praxis/StructureDefinition/billing-rule-payload-schema', min: 1, max: 1, type: Extension, mustSupport: true, index: 2} class: profile kind: resource url: https://fhir.cognovis.de/praxis/StructureDefinition/praxis-billing-rule-set-library base: http://hl7.org/fhir/StructureDefinition/Library version: 0.100.1 required: [url, experimental, effectivePeriod, name, content, title, version]