From b9b7b703ae03fdaf3e690f57c3de94cae79b26ae Mon Sep 17 00:00:00 2001 From: Espen Stranger Seland Date: Mon, 27 May 2024 17:05:21 +0200 Subject: [PATCH] =?UTF-8?q?Pr=C3=B8ver=20igjen=20med=20slice=20p=C3=A5=20P?= =?UTF-8?q?atient.identifier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LMDI/input/fsh/profiles/lmdi-Patient-test.fsh | 13 ------------- LMDI/input/fsh/profiles/lmdi-patient.fsh | 12 +++++++++++- 2 files changed, 11 insertions(+), 14 deletions(-) delete mode 100644 LMDI/input/fsh/profiles/lmdi-Patient-test.fsh diff --git a/LMDI/input/fsh/profiles/lmdi-Patient-test.fsh b/LMDI/input/fsh/profiles/lmdi-Patient-test.fsh deleted file mode 100644 index aef65b8b..00000000 --- a/LMDI/input/fsh/profiles/lmdi-Patient-test.fsh +++ /dev/null @@ -1,13 +0,0 @@ -Profile: LmdiPatientTest -Id: lmdi-patient-test-ignore -Parent: Patient -// Parent: http://hl7.no/fhir/StructureDefinition/no-basis-Patient -Title: "LMDI Patient Profile TEST" -Description: "TEST" -* ^status = #draft -* ^date = "2024-05-23" - -// TEST av no-basis-Patient - -* identifier 1..1 // TODO arv fra no-basis-Patient - diff --git a/LMDI/input/fsh/profiles/lmdi-patient.fsh b/LMDI/input/fsh/profiles/lmdi-patient.fsh index b9179faf..057936e6 100644 --- a/LMDI/input/fsh/profiles/lmdi-patient.fsh +++ b/LMDI/input/fsh/profiles/lmdi-patient.fsh @@ -12,7 +12,17 @@ Description: "Kun et eksempel for å vise verktøy" // Krav: MÅ være FNR eller DNR <- profileres // ESS: Må kanskje være MS hvis det er mulighet for kjønn+fdato -* identifier 1..1 // TODO arv fra no-basis-Patient +// Slice med FNR + DNR, TODO usikker på mutual excl. +* identifier MS +* identifier ^slicing.discriminator.type = #pattern +* identifier ^slicing.discriminator.path = "code" +* identifier ^slicing.rules = #closed +* identifier contains + FNR 0..1 and + DNR 0..1 +* identifier[FNR].system = "urn:oid:2.16.578.1.12.4.1.4.1" +* identifier[DNR].system = "urn:oid:2.16.578.1.12.4.1.4.2" +* identifier.value 1..1 // Krav: Hvis ikke ID, bruk // - kjønn