description: A legal situation can concern a legal status and/or representation.\r\n\r\nThe legal status indicates the basis on which the patient is staying in a healthcare organization. This can be either voluntary or involuntary, however the legal status is always determined by a judge. package_name: nictiz.fhir.nl.r4.zib2020 derivation: constraint name: ZibLegalSituationLegalStatus abstract: true type: Condition elements: category: index: 0 slicing: rules: open discriminator: - {path: $this, type: value} min: 1 slices: legalStatusCode: match: coding: - {code: '303186005', system: 'http://snomed.info/sct'} schema: pattern: type: CodeableConcept value: coding: - {code: '303186005', system: 'http://snomed.info/sct'} _required: true index: 1 min: 1 max: 1 code: short: LegalStatus binding: {strength: required, valueSet: 'http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.7.17.1--20200901000000'} index: 2 onset: choices: [] index: 4 slicing: rules: open discriminator: - {path: $this, type: type} min: null slices: onsetDateTime: match: {} schema: short: DateStart choices: [onsetDateTime] index: 6 onsetDateTime: short: DateStart type: dateTime choiceOf: onset index: 7 slicing: slices: onsetDateTime: match: {} schema: {short: DateStart, type: dateTime, choiceOf: onset, index: 7} abatement: choices: [] index: 9 slicing: rules: open discriminator: - {path: $this, type: type} min: null slices: abatementDateTime: match: {} schema: short: DateStop choices: [abatementDateTime] index: 11 abatementDateTime: short: DateStop type: dateTime choiceOf: abatement index: 12 slicing: slices: abatementDateTime: match: {} schema: {short: DateStop, type: dateTime, choiceOf: abatement, index: 12} package_version: 0.8.0-beta.1 class: profile kind: resource url: http://nictiz.nl/fhir/StructureDefinition/zib-LegalSituation-LegalStatus base: http://hl7.org/fhir/StructureDefinition/Condition version: null required: [category, code]