From ee92c4cabdc1eb35169dc44b8e61963057a96fbd Mon Sep 17 00:00:00 2001 From: Hendre Janse van Rensburg Date: Wed, 3 Apr 2024 08:34:48 +0000 Subject: [PATCH 1/2] add the Versioning ruleset --- Resources/input/fsh/ruleset.fsh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Resources/input/fsh/ruleset.fsh b/Resources/input/fsh/ruleset.fsh index 7ceb10c3..9bde0ea7 100644 --- a/Resources/input/fsh/ruleset.fsh +++ b/Resources/input/fsh/ruleset.fsh @@ -1,23 +1,25 @@ -RuleSet: Meta (profileName) +// General rule for to handle versions for all structure definitions +RuleSet: Versioning * ^status = #active +* ^version = "1.0" + +RuleSet: Meta (profileName) +* insert Versioning * ^experimental = false * ^publisher = "gematik GmbH" * ^url = "https://gematik.de/fhir/erp-servicerequest/StructureDefinition/{profileName}" -* ^version = "1.0" RuleSet: MetaValueSet(profileName) -* ^status = #active +* insert Versioning * ^experimental = false * ^publisher = "gematik GmbH" * ^url = "https://gematik.de/fhir/erp-servicerequest/ValueSet/{profileName}" -* ^version = "1.0" RuleSet: MetaCodeSystem(profileName) -* ^status = #active +* insert Versioning * ^experimental = false * ^publisher = "gematik GmbH" * ^url = "https://gematik.de/fhir/erp-servicerequest/CodeSystem/{profileName}" -* ^version = "1.0" RuleSet: MetaInstance(profileName) * meta.profile = "https://gematik.de/fhir/erp-servicerequest/StructureDefinition/{profileName}" From 70b15f5a3f36b87612481b2a5d753084fbcb2b31 Mon Sep 17 00:00:00 2001 From: Hendre Janse van Rensburg Date: Wed, 3 Apr 2024 09:26:56 +0000 Subject: [PATCH 2/2] add Experimental and Publisher to the ruleset --- Resources/input/fsh/ruleset.fsh | 8 ++------ fhirpkg.lock.json | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Resources/input/fsh/ruleset.fsh b/Resources/input/fsh/ruleset.fsh index 9bde0ea7..7c0a1299 100644 --- a/Resources/input/fsh/ruleset.fsh +++ b/Resources/input/fsh/ruleset.fsh @@ -1,24 +1,20 @@ // General rule for to handle versions for all structure definitions RuleSet: Versioning * ^status = #active +* ^experimental = false +* ^publisher = "gematik GmbH" * ^version = "1.0" RuleSet: Meta (profileName) * insert Versioning -* ^experimental = false -* ^publisher = "gematik GmbH" * ^url = "https://gematik.de/fhir/erp-servicerequest/StructureDefinition/{profileName}" RuleSet: MetaValueSet(profileName) * insert Versioning -* ^experimental = false -* ^publisher = "gematik GmbH" * ^url = "https://gematik.de/fhir/erp-servicerequest/ValueSet/{profileName}" RuleSet: MetaCodeSystem(profileName) * insert Versioning -* ^experimental = false -* ^publisher = "gematik GmbH" * ^url = "https://gematik.de/fhir/erp-servicerequest/CodeSystem/{profileName}" RuleSet: MetaInstance(profileName) diff --git a/fhirpkg.lock.json b/fhirpkg.lock.json index e7229bea..af03d1af 100644 --- a/fhirpkg.lock.json +++ b/fhirpkg.lock.json @@ -1,5 +1,5 @@ { - "updated": "2024-03-19T10:28:24.269772+01:00", + "updated": "2024-04-03T09:18:41.9234275+00:00", "dependencies": { "hl7.fhir.r4.core": "4.0.1", "de.basisprofil.r4": "1.3.2",