Skip to content

Commit

Permalink
feat: add Stillzustand (PTDATA-847)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-werner committed Mar 10, 2024
1 parent 969cbff commit 9b32bbc
Show file tree
Hide file tree
Showing 7 changed files with 175 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ Alkoholabusus:

Raucherstatus:

{{json:ISiKRaucherStatusBeispiel}}
{{json:ISiKRaucherStatusBeispiel}}

Stillstatus:

{{json:ISiKStillstatusBeispiel}}
30 changes: 30 additions & 0 deletions ImplementationGuide/markdown/Lebenszustand/Lebenszustand_Profil.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,35 @@ join binding.where(valueSet.exists())
URL: valueSet
}
```
@```
from StructureDefinition where url = 'https://gematik.de/fhir/isik/Basismodul/StructureDefinition/ISiKStillstatus' select Name: name, Canonical: url
```
{{tree:https://gematik.de/fhir/isik/Basismodul/StructureDefinition/ISiKStillstatus, hybrid}}
---
**Constraints**
Folgende FHIRPath-Constraints sind im Profil zu beachten:
@``` from StructureDefinition where url = 'https://gematik.de/fhir/isik/Basismodul/StructureDefinition/ISiKStillstatus' for differential.element.constraint select key, severity, human, expression```
---
**Terminology Bindings**
@```
from StructureDefinition
where url in ('https://gematik.de/fhir/isik/Basismodul/StructureDefinition/ISiKStillstatus' )
for differential.element
select
Path: path,
join binding.where(valueSet.exists())
{
Name: valueSet.substring((9 + valueSet.indexOf('ValueSet/'))),
Strength: strength,
URL: valueSet
}
```
---
16 changes: 16 additions & 0 deletions Resources/fsh-generated/fsh-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@
"startLine": 30,
"endLine": 38
},
{
"outputFile": "Observation-ISiKStillstatusBeispiel.json",
"fshName": "ISiKStillstatusBeispiel",
"fshType": "Instance",
"fshFile": "ISiKLebenszustandOberservations.fsh",
"startLine": 109,
"endLine": 118
},
{
"outputFile": "Patient-PatientinMusterfrau.json",
"fshName": "PatientinMusterfrau",
Expand Down Expand Up @@ -375,6 +383,14 @@
"startLine": 16,
"endLine": 28
},
{
"outputFile": "StructureDefinition-ISiKStillstatus.json",
"fshName": "ISiKStillstatus",
"fshType": "Profile",
"fshFile": "ISiKLebenszustandOberservations.fsh",
"startLine": 99,
"endLine": 107
},
{
"outputFile": "StructureDefinition-ISiKValueSet.json",
"fshName": "ISiKValueSet",
Expand Down
2 changes: 2 additions & 0 deletions Resources/fsh-generated/fsh-index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Observation-ISiKAlkoholAbususBeispiel.json ISiKAlk
Observation-ISiKRaucherStatusBeispiel.json ISiKRaucherStatusBeispiel Instance ISiKLebenszustandOberservations.fsh 89 - 97
Observation-ISiKSchwangerschaftErwarteterEntbindungsterminBeispiel.json ISiKSchwangerschaftErwarteterEntbindungsterminBeispiel Instance ISiKLebenszustandOberservations.fsh 49 - 57
Observation-ISiKSchwangerschaftsstatusBeispiel.json ISiKSchwangerschaftsstatusBeispiel Instance ISiKLebenszustandOberservations.fsh 30 - 38
Observation-ISiKStillstatusBeispiel.json ISiKStillstatusBeispiel Instance ISiKLebenszustandOberservations.fsh 109 - 118
Patient-PatientinMusterfrau.json PatientinMusterfrau Instance ISiKPatient.fsh 108 - 158
Patient-PatientinMusterfrauMinimal.json PatientinMusterfrauMinimal Instance ISiKBerichtBundle.fsh 41 - 53
Practitioner-PractitionerWalterArzt.json PractitionerWalterArzt Instance ISiKPersonImGesundheitsberuf.fsh 93 - 128
Expand All @@ -46,6 +47,7 @@ StructureDefinition-ISiKProzedur.json ISiKPro
StructureDefinition-ISiKRaucherStatus.json ISiKRaucherStatus Profile ISiKLebenszustandOberservations.fsh 79 - 87
StructureDefinition-ISiKSchwangerschaftErwarteterEntbindungstermin.json ISiKSchwangerschaftErwarteterEntbindungstermin Profile ISiKLebenszustandOberservations.fsh 40 - 47
StructureDefinition-ISiKSchwangerschaftsstatus.json ISiKSchwangerschaftsstatus Profile ISiKLebenszustandOberservations.fsh 16 - 28
StructureDefinition-ISiKStillstatus.json ISiKStillstatus Profile ISiKLebenszustandOberservations.fsh 99 - 107
StructureDefinition-ISiKValueSet.json ISiKValueSet Profile ISiKValueSet.fsh 1 - 22
StructureDefinition-ISiKVersicherungsverhaeltnisGesetzlich.json ISiKVersicherungsverhaeltnisGesetzlich Profile ISiKVersicherungsverhaeltnisGesetzlich.fsh 1 - 41
StructureDefinition-ISiKVersicherungsverhaeltnisSelbstzahler.json ISiKVersicherungsverhaeltnisSelbstzahler Profile ISiKVersicherungsverhaeltnisSelbstzahler.fsh 1 - 14
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"resourceType": "Observation",
"id": "ISiKStillstatusBeispiel",
"meta": {
"profile": [
"https://gematik.de/fhir/isik/Basismodul/StructureDefinition/ISiKStillstatus"
]
},
"code": {
"coding": [
{
"code": "1260078007",
"system": "http://snomed.info/sct",
"display": "Maternal breastfeeding"
}
]
},
"status": "final",
"subject": {
"reference": "Patient/PatientinMusterfrau"
},
"effectiveDateTime": "2024-01-01",
"valueBoolean": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"resourceType": "StructureDefinition",
"id": "ISiKStillstatus",
"url": "https://gematik.de/fhir/isik/Basismodul/StructureDefinition/ISiKStillstatus",
"version": "4.0.0-rc",
"name": "ISiKStillstatus",
"title": "ISiKStillstatus",
"status": "draft",
"experimental": false,
"date": "2024-01-16",
"publisher": "gematik GmbH",
"description": "Profil zur Abbildung ob gestillt/Muttermilch abgepumpt und gefüttert wird",
"fhirVersion": "4.0.1",
"mapping": [
{
"identity": "workflow",
"uri": "http://hl7.org/fhir/workflow",
"name": "Workflow Pattern"
},
{
"identity": "sct-concept",
"uri": "http://snomed.info/conceptdomain",
"name": "SNOMED CT Concept Domain Binding"
},
{
"identity": "v2",
"uri": "http://hl7.org/v2",
"name": "HL7 v2 Mapping"
},
{
"identity": "rim",
"uri": "http://hl7.org/v3",
"name": "RIM Mapping"
},
{
"identity": "w5",
"uri": "http://hl7.org/fhir/fivews",
"name": "FiveWs Pattern Mapping"
},
{
"identity": "sct-attr",
"uri": "http://snomed.org/attributebinding",
"name": "SNOMED CT Attribute Binding"
}
],
"kind": "resource",
"abstract": false,
"type": "Observation",
"baseDefinition": "https://gematik.de/fhir/isik/Basismodul/StructureDefinition/LebensZustand",
"derivation": "constraint",
"differential": {
"element": [
{
"id": "Observation.code",
"path": "Observation.code",
"patternCodeableConcept": {
"coding": [
{
"code": "1260078007",
"system": "http://snomed.info/sct"
}
]
}
},
{
"id": "Observation.value[x]",
"path": "Observation.value[x]",
"min": 1,
"type": [
{
"code": "boolean"
}
]
}
]
}
}
21 changes: 21 additions & 0 deletions Resources/input/fsh/ISiKLebenszustandOberservations.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,25 @@ Title: "ISiKRaucherStatusBeispiel"
* status = #final
* subject = Reference(PatientinMusterfrau)
* effectiveDateTime = "2024-01-01"
* valueBoolean = true

Profile: ISiKStillstatus
Parent: LebensZustand
Id: ISiKStillstatus
Title: "ISiKStillstatus"
Description: "Profil zur Abbildung ob gestillt/Muttermilch abgepumpt und gefüttert wird"
* insert Meta
* code = $sct#1260078007
* value[x] only boolean
* valueBoolean 1.. MS

Instance: ISiKStillstatusBeispiel
InstanceOf: ISiKStillstatus
Usage: #example
Title: "ISiKStillstatusBeispiel"
Description: "ISiKStillstatusBeispiel"
* code = $sct#1260078007 "Maternal breastfeeding"
* status = #final
* subject = Reference(PatientinMusterfrau)
* effectiveDateTime = "2024-01-01"
* valueBoolean = true

0 comments on commit 9b32bbc

Please sign in to comment.