Skip to content

Commit

Permalink
renamed package
Browse files Browse the repository at this point in the history
added examples
  • Loading branch information
gcangioli committed Feb 18, 2024
1 parent e515288 commit facc3ad
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 23 deletions.
5 changes: 2 additions & 3 deletions FHIR-eu-extensions.r4.xml → FHIR-eu-extensions.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<specification xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ciUrl="https://build.fhir.org/ig/hl7-eu/extensions-r4" defaultVersion="current" defaultWorkgroup="eu" url="http://hl7.eu/fhir/r4/extensions">
<specification xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ciUrl="https://build.fhir.org/ig/hl7-eu/extensions-r4" defaultVersion="current" defaultWorkgroup="eu" url="http://hl7.eu/fhir/extensions">
<version code="current" url="https://build.fhir.org/ig/hl7-eu/extensions-r4"/>
<version code="0.1.0-ci" url="http://hl7.eu/fhir/r4/extensions"/>
<artifactPageExtension value="-definitions"/>
<artifactPageExtension value="-examples"/>
<artifactPageExtension value="-mappings"/>
<artifact id="StructureDefinition/body-location-qualifier" key="StructureDefinition-body-location-qualifier" name="Body Location Qualifier"/>
<artifact id="Composition/comp-example" key="Composition-comp-example" name="Composition: example with InformationRecipient and CompositionBasedOnOrderOrRequisition extensions"/>
<artifact id="StructureDefinition/composition-basedOn-order-or-requisition" key="StructureDefinition-composition-basedOn-order-or-requisition" name="Document Based On Order"/>
<artifact id="StructureDefinition/information-recipient" key="StructureDefinition-information-recipient" name="Information recipient"/>
<artifact id="StructureDefinition/laterality-qualifier" key="StructureDefinition-laterality-qualifier" name="Laterality Qualifier"/>
<page key="NA" name="(NA)"/>
<page key="many" name="(many)"/>
<page key="artifacts" name="Artifacts Summary"/>
Expand Down
2 changes: 1 addition & 1 deletion ig.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# see comments below for instructions

# ig = fsh-generated/resources/ImplementationGuide-hl7.fhir.eu.eu-laboratory.json
ig = fsh-generated/resources/ImplementationGuide-hl7.fhir.eu.extensions.r4.json
ig = fsh-generated/resources/ImplementationGuide-hl7.fhir.eu.extensions.json
#template = openhie.fhir.template#current
template = #ig-template

Expand Down
24 changes: 24 additions & 0 deletions input/fsh/examples/Examples.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Instance: comp-example
InstanceOf: Composition
Title: "Composition: example with InformationRecipient and CompositionBasedOnOrderOrRequisition extensions"
Description: """Composition: example with InformationRecipient and CompositionBasedOnOrderOrRequisition extensions."""
Usage: #example
* extension[CompositionBasedOnOrderOrRequisition].valueIdentifier
* system = "urn:oid:1.999.999.999"
* value = "document-order-1"
* extension[InformationRecipient].valueReference
* display = "MUDr. Aleš Procházka"
* identifier
* system = "urn:ietf:rfc:3986"
* identifier.value = "urn:uuid:3f69e0a5-2177-4540-baab-7a5d0877428f"
* status = #final
* type = $loinc#11502-2 "Laboratory report"
* subject.display = "Nice Patient"
* date = "2022-10-25T14:30:00+01:00"
* author[+].display = "MUDr. Aleš Procházka"
* title = "Laboratory Report Test"
* confidentiality = #N
* attester[+].mode = #legal
* attester[=].time = "2020-12-27T14:30:00+01:00"
* attester[=].party.display = "Best Laboratory"
* custodian.display = "Best Laboratory"
10 changes: 4 additions & 6 deletions input/fsh/extensions/extensions-lab.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ Id: composition-basedOn-order-or-requisition
Title: "Document Based On Order"
Description: "This extension provides a link to the order [(Reference(ServiceRequest)] or requisition [ServiceRequest.requisition (i.e., 'Request.groupIdentifier')] that this report document is based on and fulfills."
// publisher, contact, and other metadata here using caret (^) syntax (omitted)
/* * ^context[+].type = #element
* ^context[=].expression = "Composition" */
* insert SetFmmandStatusRule ( 2, trial-use )
* insert ExtensionContext(Composition)
* ^url = "http://hl7.eu/fhir/StructureDefinition/composition-basedOn-order-or-requisition"
* value[x] only Reference (ServiceRequest) or Identifier
Expand All @@ -16,14 +15,13 @@ Id: information-recipient
Title: "Information recipient"
Description: "This extension applies to the Composition resource and is used to represent an intended recipient of the composition."
// publisher, contact, and other metadata here using caret (^) syntax (omitted)
/* * ^context[+].type = #element
* ^context[=].expression = "Composition" */
* insert ExtensionContext(Composition)
* insert SetFmmandStatusRule ( 2, trial-use )
* ^url = "http://hl7.eu/fhir/StructureDefinition/information-recipient"
* value[x] only Reference (Practitioner or Device or Patient or RelatedPerson or PractitionerRole or Organization)


Extension: BodyLocationQualifier
/* Extension: BodyLocationQualifier
Id: body-location-qualifier
Title: "Body Location Qualifier"
Description: """Qualifier to refine an body location. These include qualifiers for relative location, directionality, number, and plane, and exclude qualifiers for laterality.
Expand Down Expand Up @@ -52,4 +50,4 @@ Inspired to the mCode extension."""
* ^url = "http://hl7.eu/fhir/StructureDefinition/laterality-qualifier"
* value[x] only CodeableConcept
* value[x] from $bodystructure-relative-location (example)
* value[x] 1..1
* value[x] 1..1 */
96 changes: 96 additions & 0 deletions input/fsh/rulesSet/rulesSet-common.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
RuleSet: ExtensionContext(path)
// copied by mCode
* ^context[+].type = #element
* ^context[=].expression = "{path}"


RuleSet: SetFmmandStatusRule ( fmm, status )
* ^extension[http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm].valueInteger = {fmm}
* ^extension[http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status].valueCode = #{status}


RuleSet: SetFmmandStatusRuleInstance ( fmm, status )
// Rule to be used for Instances
* extension[http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm].valueInteger = {fmm}
* extension[http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status].valueCode = #{status}

RuleSet: SectionComRules (short, def, code)

// * insert (Health Concern Section, test, http://loinc.org#75310-3)

* ^extension[0].url = "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name"
* ^extension[0].valueString = "Section"
* ^short = "{short}"
* ^definition = "{def}"
* title 1..
* code 1..
* code only http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips
* code = {code} (exactly)
* text 1..
* text only Narrative
* emptyReason ..0
* emptyReason ^mustSupport = false

RuleSet: SectionEntrySliceComRules (short, def)
* entry ^slicing.discriminator[0].type = #type
* entry ^slicing.discriminator[0].path = "resolve()"
* entry ^slicing.ordered = false
* entry ^slicing.rules = #open
* entry ^short = "{short}"
* entry ^definition = "{def}"

RuleSet: SectionEntrySliceDefRules (name, card, short, def, profiles)
// SectionEntrySliceDefRules (flags, 0.., "Care Team", "Care Team", CareTeamEu)

* entry contains {name} 0..1
* entry[{name}] {card}
* entry[{name}] ^short = "{short}"
* entry[{name}] ^definition = "{def}"
* entry[{name}] only Reference({profiles})

//--------------------------------------------
RuleSet: NoSubSectionsRules
* section ..0
* section ^mustSupport = false

RuleSet: SectionElementsRules
* code from LabStudyTypesEuVs (preferred)
* text ^short = "Text summary of the section, for human interpretation."
* entry only Reference (ObservationResultsLaboratoryEu )
// * entry only Reference (ObservationResultsLaboratoryEu or DiagnosticReport)
// * entry ^comment = "The DiagnosticReport referred in the entry SHALL NOT be that representing the whole Laboratory Report"
* entry 1..
* section ..0

RuleSet: SectionCommonRules
* section.title 1..
* section.code 1..
* section.code only $CodeableConcept-uv-ips

RuleSet: SNOMEDCopyrightForVS
* ^copyright = "This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement"
* ^experimental = false

RuleSet: LOINCCopyrightForVS
* ^copyright = "This material contains content from LOINC (http://loinc.org). LOINC is copyright © 1995-2020, Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes (LOINC) Committee and is available at no cost under the license at http://loinc.org/license. LOINC® is a registered United States trademark of Regenstrief Institute, Inc"
* ^experimental = false

RuleSet: NPUCopyrightForVS
* ^copyright = "This material contains content from NPU Terminology (http://npu-terminology.org). NPU is copyright International Federation of Clinical Chemistry (IFCC) and International Union of Pure and Applied Chemistry (IUPAC) and is available at no cost under the license at blob:https://www.labterm.dk/0472bc56-3aa1-484d-a377-92a3db82b559."
* ^experimental = false

/* RuleSet: JCTLMCopyrightForVS
* ^copyright = "This material contains content from JCTLM Database (https://www.jctlmdb.org). The JCTLM Database is copyright Joint Committee for Traceability in Laboratory Medicine (JCTLM)."
* ^experimental = false */

RuleSet: NIBSCCopyrightForVS
* ^copyright = "This material contains content from the NIBSC Product list (https://nibsc.org/NIBSC%20Product%20List%20-%20Feb%2024.pdf). The National Institute for Biological Standards and Control part of the UK Medicines and Healthcare products Regulatory Agency (MHRA)."
* ^experimental = true

RuleSet: ObligationActorAndCode(actor, code)
* ^extension[$obligation][+].extension[code].valueCode = {code}
* ^extension[$obligation][=].extension[actor].valueCanonical = {actor}

RuleSet: ObligationElement(element)
// Used for profile level obligations. Insert after obligation code and actor
* ^extension[$obligation][=].extension[elementId].valueString = {element}
5 changes: 0 additions & 5 deletions input/fsh/rulesSet/rulesets.fsh

This file was deleted.

16 changes: 8 additions & 8 deletions sushi-config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
id: hl7.fhir.eu.extensions.r4
canonical: http://hl7.eu/fhir/r4/extensions
id: hl7.fhir.eu.extensions
canonical: http://hl7.eu/fhir/extensions
name: Hl7EuExtensions
title: HL7 Europe Extensions
description: This guide lists the extensions speciifed for the European REALM.
status: active # draft | active | retired | unknown
version: 0.1.0-ci #
version: 0.1.0 #
fhirVersion: 4.0.1 # https://www.hl7.org/fhir/valueset-FHIR-version.html
copyrightYear: 2023+
releaseLabel: ci-build # ci-build | draft | qa-preview | ballot | trial-use | release | update | normative+trial-use
releaseLabel: trial-use # ci-build | draft | qa-preview | ballot | trial-use | release | update | normative+trial-use
# license: CC0-1.0 # https://www.hl7.org/fhir/valueset-spdx-license.html
# https://www.hl7.org/fhir/valueset-jurisdiction.html
jurisdiction: http://unstats.un.org/unsd/methods/m49/m49.htm#150 "Europe" # urn:iso:std:iso:3166#EU
publisher:
name: HL7 Europe
# url: http://hl7.eu
url: http://hl7.org/Special/committees/eu
url: http://hl7.eu
# url: http://hl7.org/Special/committees/eu
# email: [email protected]
copyright: >-
Used by permission of HL7 Europe, all rights reserved Creative Commons License
Expand Down Expand Up @@ -65,8 +65,8 @@ parameters: #see https://confluence.hl7.org/display/FHIR/Implementation+Guide+Pa
special-url:
- http://hl7.eu/fhir/StructureDefinition/information-recipient
- http://hl7.eu/fhir/StructureDefinition/composition-basedOn-order-or-requisition
- http://hl7.eu/fhir/StructureDefinition/body-location-qualifier
- http://hl7.eu/fhir/StructureDefinition/laterality-qualifier
# - http://hl7.eu/fhir/StructureDefinition/body-location-qualifier
# - http://hl7.eu/fhir/StructureDefinition/laterality-qualifier

# see https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters
# path-resource:
Expand Down

0 comments on commit facc3ad

Please sign in to comment.