Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zib-SNAQScore #176

Merged
merged 49 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
292cd0d
Branch init with the profiles and terminology
Oct 6, 2021
8c879b9
Merge branch 'main' into zib-SNAQScore
Oct 6, 2021
157b806
Merge branch 'main' into zib-SNAQScore
Oct 7, 2021
d41ab2b
Added release notes
Oct 26, 2021
6bc5de8
Merge branch 'main' into zib-SNAQScore
LuudSlagter Nov 15, 2021
27e6da8
Rephrased some sentences
LuudSlagter Nov 15, 2021
6a2d45b
- Changed code system
LuudSlagter Nov 19, 2021
5b317de
Merge branch 'main' into zib-SNAQScore
LuudSlagter Dec 9, 2021
ea3a4e7
Merge branch 'main' into zib-SNAQScore
LuudSlagter Jan 17, 2022
f4e3214
Added examples (including invalid ones for testing purposes)
LuudSlagter Jan 17, 2022
a03c744
Corrected constraints and removed invalid examples
LuudSlagter Jan 17, 2022
b61bff8
Corrected constraints
LuudSlagter Jan 18, 2022
aca3bb3
Corrected constraint
LuudSlagter Jan 18, 2022
f5f2f01
Merge branch 'main' into zib-SNAQScore
LuudSlagter Sep 29, 2022
11e26f6
Corrected telecom and resaved in Forge
LuudSlagter Sep 29, 2022
5bdd40d
Merge branch 'main' into zib-SNAQScore
Oct 19, 2022
840c252
Merge branch 'main' into zib-SNAQScore
LuudSlagter Oct 25, 2022
4d17d25
Regenerated example
LuudSlagter Oct 25, 2022
90fafe7
Added mapping in nl-core layer
Feb 15, 2023
1ea2c12
MM-4808: Add guidance about the ordinalValue extension in the profile
pieter-edelman-nictiz Apr 25, 2023
50a59e1
Merge branch 'main' into zib-SNAQScore
pieter-edelman-nictiz Aug 28, 2024
0be5490
Merge branch 'main' into zib-SNAQScore
pieter-edelman-nictiz Sep 16, 2024
0b00010
Add missing narratives to SNAQscore profiles
pieter-edelman-nictiz Sep 16, 2024
a1ecd7e
Add empty narratives on terminology downloads
pieter-edelman-nictiz Aug 28, 2024
361b271
Honor language tag when adding the empty narrative. This is basically…
pieter-edelman-nictiz Aug 29, 2024
3b36449
Regenerate terminology resources
pieter-edelman-nictiz Aug 29, 2024
e92cc72
Repair path checking for terminology download scripts
pieter-edelman-nictiz Aug 29, 2024
66f2c83
First attempt at a better terminology downloader. Very much WIP
pieter-edelman-nictiz Aug 30, 2024
fd1583b
Adapt terminology script to keep on downloading until all recursive b…
pieter-edelman-nictiz Aug 30, 2024
ccb02f8
Enable check on changed file location
pieter-edelman-nictiz Aug 30, 2024
fdf9311
Enable ValueSet rewriting, move the stylesheet to its proper subfolder
pieter-edelman-nictiz Aug 30, 2024
7a761a0
Add code system handling, mostly a copy of the ValueSet logic
pieter-edelman-nictiz Aug 30, 2024
6533277
Generalize templates and functions
pieter-edelman-nictiz Aug 30, 2024
b123657
Document and tweak terminology download script
pieter-edelman-nictiz Aug 30, 2024
49f5bfb
Refresh terminology, omitting duplicates
pieter-edelman-nictiz Aug 30, 2024
5a8bac1
Remove outdated terminology download scripts
pieter-edelman-nictiz Sep 2, 2024
ac7c8b6
Update README for new terminology download script
pieter-edelman-nictiz Sep 2, 2024
df065cb
Update README
pieter-edelman-nictiz Sep 2, 2024
2f64658
Temporarily remove CodeSystem resources with wrong file name capitali…
pieter-edelman-nictiz Sep 16, 2024
ff625ce
Re-add CodeSystem resources with proper file name capitalization
pieter-edelman-nictiz Sep 16, 2024
381dfbe
Update RolCodeLijst ValueSet resource with updated remark
pieter-edelman-nictiz Sep 16, 2024
6176eb3
Add missing .conditions on .value[x] of the slices
pieter-edelman-nictiz Sep 16, 2024
3b6797a
Merge branch 'ZIBFHIR-67' into zib-SNAQScore
pieter-edelman-nictiz Sep 16, 2024
00f9970
Refresh terminology for zib SNAQscore
pieter-edelman-nictiz Sep 16, 2024
7d669f6
Add missing narrative for SNAQScore example
pieter-edelman-nictiz Sep 16, 2024
3a7ff9c
Increase value range because of erratum ZIB-1729
pieter-edelman-nictiz Sep 16, 2024
2971de4
Update terminology for zib SNAQScore (including erratum)
pieter-edelman-nictiz Sep 17, 2024
39b234c
Merge branch 'main' into zib-SNAQScore
pieter-edelman-nictiz Sep 17, 2024
2121180
Merge branch 'main' into zib-SNAQScore
pieter-edelman-nictiz Sep 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 120 additions & 0 deletions examples/nl-core-SNAQScore-01.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<Observation xmlns="http://hl7.org/fhir">

Check warning on line 1 in examples/nl-core-SNAQScore-01.xml

View workflow job for this annotation

GitHub Actions / Strict QA on changed materials

Best Practice Recommendation: In general, all observations should have a performer (at Observation)
<id value="nl-core-SNAQScore-01"/>
<meta>
<profile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-SNAQScore"/>
</meta>
<text>
<status value="extensions"/>
<div xmlns="http://www.w3.org/1999/xhtml">
<table>
<caption>Observatie/bepaling. Subject: Patient, Johanna Petronella Maria (Jo) van Putten-van der Giessen. Status: definitief</caption>
<tbody>
<tr>
<th>Bepalingdatum/tijd</th>
<td>27 januari 2013</td>
</tr>
<tr>
<th>Code</th>
<th>Waarde</th>
</tr>
<tr>
<td>
<span title="Short Nutritional Assessment Questionnaire (8881000146104 - SNOMED CT)">Short Nutritional Assessment Questionnaire</span>
</td>
<td>4</td>
</tr>
<tr>
<td>
<span title="SNAQScore GewichtsverliesScore (4006003 - 2.16.840.1.113883.2.4.3.11.60.40.4.0.1)">SNAQScore GewichtsverliesScore</span>
</td>
<td>
<span title="LossHigh (G2 - 2.16.840.1.113883.2.4.3.11.60.40.4.5.1)">LossHigh</span>
</td>
</tr>
<tr>
<td>
<span title="SNAQScore EetlustScore (4006004 - 2.16.840.1.113883.2.4.3.11.60.40.4.0.1)">SNAQScore EetlustScore</span>
</td>
<td>
<span title="GeenEetlust (B1 - 2.16.840.1.113883.2.4.3.11.60.40.4.5.2)">GeenEetlust</span>
</td>
</tr>
<tr>
<td>
<span title="SNAQScore VoedingsScore (4006005 - 2.16.840.1.113883.2.4.3.11.60.40.4.0.1)">SNAQScore VoedingsScore</span>
</td>
<td>
<span title="GeenVoeding (Z0 - 2.16.840.1.113883.2.4.3.11.60.40.4.5.3)">GeenVoeding</span>
</td>
</tr>
</tbody>
</table>
</div>
</text>
<status value="final"/>
<code>
<coding>
<system value="http://snomed.info/sct"/>
<code value="8881000146104"/>
<display value="Short Nutritional Assessment Questionnaire"/>
</coding>
</code>
<subject>
<reference value="Patient/nl-core-Patient-01"/>
<type value="Patient"/>
<display value="Patient, Johanna Petronella Maria (Jo) van Putten-van der Giessen"/>
</subject>
<effectiveDateTime value="2013-01-27"/>
<valueInteger value="4"/>
<note>
<text value="Grotere mate van ondervoeding t.o.v. vorig meetmoment."/>
</note>
<component>
<code>
<coding>
<system value="urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.0.1"/>
<code value="4006003"/>
<display value="SNAQScore GewichtsverliesScore"/>
</coding>
</code>
<valueCodeableConcept>
<coding>
<system value="urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.5.1"/>
<code value="G2"/>
<display value="LossHigh"/>
</coding>
</valueCodeableConcept>
</component>
<component>
<code>
<coding>
<system value="urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.0.1"/>
<code value="4006004"/>
<display value="SNAQScore EetlustScore"/>
</coding>
</code>
<valueCodeableConcept>
<coding>
<system value="urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.5.2"/>
<code value="B1"/>
<display value="GeenEetlust"/>
</coding>
</valueCodeableConcept>
</component>
<component>
<code>
<coding>
<system value="urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.0.1"/>
<code value="4006005"/>
<display value="SNAQScore VoedingsScore"/>
</coding>
</code>
<valueCodeableConcept>
<coding>
<system value="urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.5.3"/>
<code value="Z0"/>
<display value="GeenVoeding"/>
</coding>
</valueCodeableConcept>
</component>
</Observation>
19 changes: 12 additions & 7 deletions release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@ This document contains release notes per zib, indicating differences with their
## zib-Refraction
* Refraction is a newly added zib in the 2020 release. It has no previous profile and therefore no diff.

## zib-SNAQScore
* The datatype of `Observation.value[x]` (zib concept TotalScore) element has been changed from Quantity to Integer, and minimum and maximum allowed values of 0 and 5 respectively are applied.
* The code on `Observation.component:weightLossScore.code` has changed to 4006003 and the system value to urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.0.1.
* The code on `Observation.component:appetiteScore.code` has changed to 4006004 and the system value to urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.0.1.
* The code on `Observation.component:nutritionScore.code` has changed to 4006005 and the system value to urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.0.1.

## zib-SNAQrcScore
* The datatype of `Observation.value[x]` (zib concept TotalScore) element has been changed from Quantity to Integer, and minimum and maximum allowed values of 0 and 5 respectively are applied.
Expand All @@ -335,6 +340,13 @@ This document contains release notes per zib, indicating differences with their
* The code on `Observation.component:bmiScore.code` has changed to 4029005 and the system value to urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.0.1.
* The code on `Observation.component:assistedEating.code` has changed to 4029008 and the system value to urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.0.1.

## zib-SNAQ65plusScore
* The datatype of `Observation.value[x]` (zib concept TotalScore) element has been changed from Quantity to Integer, and minimum and maximum allowed values of 0 and 5 respectively are applied.
* The code on `Observation.component:weightLossScore.code` has changed to 4030003 and the system value to urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.0.1.
* The code on `Observation.component:upperArmCircumference.code` has changed to 4030008 and the system value to urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.0.1.
* The code on `Observation.component:appetiteScore.code` has changed to 4030004 and the system value to urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.0.1.
* The code on `Observation.component:excerciseScore.code` has changed to 4030005 and the system value to urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.0.1.

## zib-SOAPReport
* This is a newly added zib but had profiles that preceded the zib, namely gp-EncounterReport and gp-JournalEntry.
* Removed constraints not accounted for by the zib.
Expand All @@ -351,13 +363,6 @@ This document contains release notes per zib, indicating differences with their
* `Condition.bodySite` is now based on the zib AnatomicalLocation profile.
* `Condition.note` now honours the max cardinality of zib Comment.

## zib-SNAQ65plusScore
* The datatype of `Observation.value[x]` (zib concept TotalScore) element has been changed from Quantity to Integer, and minimum and maximum allowed values of 0 and 5 respectively are applied.
* The code on `Observation.component:weightLossScore.code` has changed to 4030003 and the system value to urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.0.1.
* The code on `Observation.component:upperArmCircumference.code` has changed to 4030008 and the system value to urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.0.1.
* The code on `Observation.component:appetiteScore.code` has changed to 4030004 and the system value to urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.0.1.
* The code on `Observation.component:excerciseScore.code` has changed to 4030005 and the system value to urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.0.1.

## zib-Stoma
* The resource to represent this zib has been changed from Observation to Condition. This aligns better with the meaning of the zib, as a stoma requires long term management.
* The general code of a Stoma has been added as a pattern to `Condition.category` allowing the category element to be used for other purposes too.
Expand Down
4 changes: 4 additions & 0 deletions resources/.simplifier/folder.settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"IncludeSubdirectories": true,
"PreferredFormat": "Xml"
}
52 changes: 52 additions & 0 deletions resources/nl-core/nl-core-SNAQScore.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="nl-core-SNAQScore" />
<text>
<status value="empty"/>
<div xmlns="http://www.w3.org/1999/xhtml">No narrative is provided for definitional resources. A human-readable rendering can be found in the implementation guide(s) where this resource is used.</div>
</text>
<url value="http://nictiz.nl/fhir/StructureDefinition/nl-core-SNAQScore" />
<name value="NlcoreSNAQScore" />
<title value="nl core SNAQScore" />
<status value="draft" />
<publisher value="Nictiz" />
<contact>
<name value="Nictiz" />
<telecom>
<system value="url" />
<value value="https://www.nictiz.nl" />
<use value="work" />
</telecom>
</contact>
<description value="The Short Nutritional Assessment Questionnaire (SNAQ) is a (validated) measuring tool for determining the extent of a patient’s malnutrition. The tool comprises three questions, each of which is assigned a score. The total score determines the extent of malnutrition.&#xD;&#xA;The SNAQ helps to recognize and treat malnutrition at an early stage.&#xD;&#xA;Three varieties of the measuring tool were developed for different care settings: hospitals, nursing and retirement homes and independently living seniors. This concept describes the tool intended for the hospital setting." />
<purpose value="A derived profile from [zib-SNAQScore](http://nictiz.nl/fhir/StructureDefinition/zib-SNAQScore) to provide a version better suited for implementation purposes. This profile augments the base profile with elements found in the various use cases that have adopted the zib." />
<copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
<fhirVersion value="4.0.1" />
<mapping>
<identity value="zib-snaqscore-v3.2-2020EN" />
<uri value="https://zibs.nl/wiki/SNAQScore-v3.2(2020EN)" />
<name value="zib SNAQScore-v3.2(2020EN)" />
</mapping>
<kind value="resource" />
<abstract value="false" />
<type value="Observation" />
<baseDefinition value="http://nictiz.nl/fhir/StructureDefinition/zib-SNAQScore" />
<derivation value="constraint" />
<differential>
<element id="Observation">
<path value="Observation" />
<alias value="nl-core-SNAQScore" />
</element>
<element id="Observation.subject">
<path value="Observation.subject" />
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
<targetProfile value="http://nictiz.nl/fhir/StructureDefinition/nl-core-Patient" />
</type>
</element>
</differential>
</StructureDefinition>
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<CodeSystem xmlns="http://hl7.org/fhir">
<id value="2.16.840.1.113883.2.4.3.11.60.40.4.5.2"/>
<meta>
<profile value="http://hl7.org/fhir/StructureDefinition/shareablecodesystem"/>
<!--<profile value="http://hl7.org/fhir/4.0/StructureDefinition/CodeSystem"/>-->
</meta>
<language value="nl-NL"/>
<text>
<status value="empty"/>
<div xmlns="http://www.w3.org/1999/xhtml" lang="nl-NL" xml:lang="nl-NL">Definitie-resources zijn niet voorzien van een narrative. Een menselijk leesbare versie is te vinden via de implementation guide(s) waarin deze resource gebruikt wordt.</div>
</text>
<extension url="http://hl7.org/fhir/StructureDefinition/resource-effectivePeriod">
<valuePeriod>
<start value="2020-09-01T00:00:00Z"/>
</valuePeriod>
</extension>
<url value="urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.5.2"/>
<identifier>
<use value="official"/>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:oid:2.16.840.1.113883.2.4.3.11.60.40.4.5.2"/>
</identifier>
<version value="2020-09-01T00:00:00"/>
<name value="SNAQ_Eetlust"/>
<title value="SNAQ_Eetlust"/>
<status value="active"/>
<experimental value="false"/>
<publisher value="Registratie aan de bron"/>
<contact>
<name value="Registratie aan de bron"/>
<telecom>
<system value="url"/>
<value value="https://www.registratieaandebron.nl"/>
</telecom>
<telecom>
<system value="url"/>
<value value="https://www.zibs.nl"/>
</telecom>
</contact>
<description value="SNAQ_Eetlust"/>
<caseSensitive value="false"/>
<content value="complete"/>
<count value="2"/>
<property>
<code value="ordinal-value"/>
<uri value="http://hl7.org/fhir/StructureDefinition/ordinalValue"/>
<description value="A numeric value that allows the comparison (less than, greater than) or other numerical manipulation of a concept (e.g. Adding up components of a score). Scores are usually a whole number, but occasionally decimals are encountered in scores."/>
<type value="integer"/>
</property>
<property>
<code value="status"/>
<uri value="http://hl7.org/fhir/concept-properties"/>
<description value="A code that indicates the status of the concept. Values found in this version of the code system are: active"/>
<type value="code"/>
</property>
<concept>
<extension url="http://hl7.org/fhir/StructureDefinition/ordinalValue">
<valueDecimal value="0"/>
</extension>
<code value="B0"/>
<display value="Eetlust"/>
<definition value="Normale eetlust"/>
<property>
<code value="ordinal-value"/>
<valueInteger value="0"/>
</property>
<property>
<code value="status"/>
<valueCode value="active"/>
</property>
</concept>
<concept>
<extension url="http://hl7.org/fhir/StructureDefinition/ordinalValue">
<valueDecimal value="1"/>
</extension>
<code value="B1"/>
<display value="GeenEetlust"/>
<definition value="Verminderde eetlust de afgelopen maand"/>
<property>
<code value="ordinal-value"/>
<valueInteger value="1"/>
</property>
<property>
<code value="status"/>
<valueCode value="active"/>
</property>
</concept>
</CodeSystem>
Loading
Loading