Skip to content

Commit

Permalink
Added profiles for artifact types currently in use.
Browse files Browse the repository at this point in the history
Fixed all QA
  • Loading branch information
brynrhodes committed Sep 16, 2024
1 parent 481d707 commit cbe6c4b
Show file tree
Hide file tree
Showing 18 changed files with 176 additions and 30 deletions.
7 changes: 7 additions & 0 deletions input/fsh/profiles/SGActivityDefinition.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Profile: SGActivityDefinition
Parent: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareableactivitydefinition
Title: "SMART Guidelines ActivityDefinition"
Description: "Defines the minimum expectations for ActivityDefinition resources used in SMART Guidelines"
* name 1..1
* publisher 1..1

2 changes: 2 additions & 0 deletions input/fsh/profiles/SGBusinessProcess.fsh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Profile: SGBusinessProcess
Parent: PlanDefinition
Title: "SMART Guidelines Business Process"
Description: "Defines the minimum expectations for Business Processes represented in SMART Guidelines"
6 changes: 5 additions & 1 deletion input/fsh/profiles/SGCodeSystem.fsh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Profile: SGCodeSystem
Parent: CodeSystem
Parent: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablecodesystem
Title: "SMART Guidelines CodeSystem"
Description: "Defines the minimum expectations for CodeSystem resources used in SMART Guidelines"
* name 1..1
* publisher 1..1

7 changes: 7 additions & 0 deletions input/fsh/profiles/SGConceptMap.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Profile: SGConceptMap
Parent: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareableconceptmap
Title: "SMART Guidelines ConceptMap"
Description: "Defines the minimum expectations for ConceptMap resources used in SMART Guidelines"
* name 1..1
* publisher 1..1

41 changes: 34 additions & 7 deletions input/fsh/profiles/SGImplementationGuide.fsh
Original file line number Diff line number Diff line change
@@ -1,21 +1,48 @@
Profile: SGImplementationGuide
Parent: ImplementationGuide
Parent: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareableimplementationguide
Title: "SMART Guidelines ImplementationGuide"
Description: "Defines the minimum expectations for ImplementationGuide resources used in SMART Guidelines"
* name 1..1
* publisher 1..1

* license = #CC-BY-SA-3.0-IGO




* definition.resource
* ^slicing.discriminator.type = #profile
* ^slicing.discriminator.path = "reference.resolve()"
* ^slicing.rules = #open

* definition.resource contains
LogicalModel 0..* and
ActivityDefinition 0..* and
CodeSystem 0..* and
ConceptMap 0..* and
Extension 0..* and
Profile 0..*

Library 0..* and
LogicalModel 0..* and
Measure 0..* and
Profile 0..* and
Questionnaire 0..* and
StructureMap 0..* and
ValueSet 0..*

* definition.resource[ActivityDefinition].reference.type = #ActivityDefinition
* definition.resource[ActivityDefinition].reference only Reference(SGActivityDefinition)
* definition.resource[CodeSystem].reference.type = #CodeSystem
* definition.resource[CodeSystem].reference only Reference(SGCodeSystem)
* definition.resource[ConceptMap].reference.type = #ConceptMap
* definition.resource[ConceptMap].reference only Reference(SGConceptMap)
* definition.resource[Library].reference.type = #Library
* definition.resource[Library].reference only Reference(SGLibrary)
* definition.resource[LogicalModel].reference.type = #StructureDefinition
* definition.resource[LogicalModel].reference only Reference(SGLogicalModel)
* definition.resource[Measure].reference.type = #Measure
* definition.resource[Measure].reference only Reference(SGMeasure)
* definition.resource[Profile].reference.type = #StructureDefinition
* definition.resource[Profile].reference only Reference(SGStructureDefinition)
* definition.resource[Questionnaire].reference.type = #Questionnaire
* definition.resource[Questionnaire].reference only Reference(SGQuestionnaire)
* definition.resource[StructureMap].reference.type = #StructureMap
* definition.resource[StructureMap].reference only Reference(SGStructureMap)
* definition.resource[ValueSet].reference.type = #ValueSet
* definition.resource[ValueSet].reference only Reference(SGValueSet)

7 changes: 7 additions & 0 deletions input/fsh/profiles/SGLibrary.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Profile: SGLibrary
Parent: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablelibrary
Title: "SMART Guidelines Library"
Description: "Defines the minimum expectations for Library resources used in SMART Guidelines"
* name 1..1
* publisher 1..1

3 changes: 2 additions & 1 deletion input/fsh/profiles/SGLogicalModel.fsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Profile: SGLogicalModel
Parent: StructureDefinition

Title: "SMART Guidelines Logical Model"
Description: "Defines the minimum expectations for Logical Models used in SMART Guidelines"
* title 1..1
* publisher 1..1
* description 1..1
Expand Down
8 changes: 3 additions & 5 deletions input/fsh/profiles/SGMeasure.fsh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Profile: SGMeasure
Parent: Measure

* title 1..1
* version 1..1
Parent: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure
Title: "SMART Guidelines Measure"
Description: "Defines the minimum expectations for Measure resources used in SMART Guidelines"
* name 1..1
* publisher 1..1
* description 1..1
7 changes: 7 additions & 0 deletions input/fsh/profiles/SGPlanDefinition.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Profile: SGPlanDefinition
Parent: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareableplandefinition
Title: "SMART Guidelines PlanDefinition"
Description: "Defines the minimum expectations for PlanDefinition resources used in SMART Guidelines"
* name 1..1
* publisher 1..1

7 changes: 7 additions & 0 deletions input/fsh/profiles/SGQuestionnaire.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Profile: SGQuestionnaire
Parent: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablequestionnaire
Title: "SMART Guidelines Questionnaire"
Description: "Defines the minimum expectations for Questionnaire resources used in SMART Guidelines"
* name 1..1
* publisher 1..1

7 changes: 7 additions & 0 deletions input/fsh/profiles/SGStructureDefinition.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Profile: SGStructureDefinition
Parent: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablestructuredefinition
Title: "SMART Guidelines StructureDefinition"
Description: "Defines the minimum expectations for StructureDefinition resources used in SMART Guidelines"
* name 1..1
* publisher 1..1

9 changes: 9 additions & 0 deletions input/fsh/profiles/SGStructureMap.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Profile: SGStructureMap
Parent: StructureMap
Title: "SMART Guidelines StructureMap"
Description: "Defines the minimum expectations for StructureMap resources used in SMART Guidelines"
* version 1..1
* title 1..1
* publisher 1..1
* description 1..1

6 changes: 5 additions & 1 deletion input/fsh/profiles/SGValueSet.fsh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Profile: SGValueSet
Parent: ValueSet
Parent: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablevalueset
Title: "SMART Guidelines ValueSet"
Description: "Defines the minimum expectations for ValueSet resources used in SMART Guidelines"
* name 1..1
* publisher 1..1

47 changes: 44 additions & 3 deletions input/ignoreWarnings.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
== Suppressed Messages ==

# Add warning and/or information messages here after you've confirmed that they aren't really a problem
# (And include comments like this justifying why)
# See https://github.com/FHIR/sample-ig/blob/master/input/ignoreWarnings.txt for examples
# Markdown extension is intended for use on any element
WARNING: StructureDefinition/Markdown: StructureDefinition.context[0]: Review the extension type for Markdown: extensions should not have a context of Element unless it's really intended that they can be used anywhere

# Code extension is intended for use on any element
WARNING: StructureDefinition/Sgcode: StructureDefinition.context[0]: Review the extension type for Sgcode: extensions should not have a context of Element unless it's really intended that they can be used anywhere

# No examples are included
WARNING: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/Markdown'): The Implementation Guide contains no examples for this extension
WARNING: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGActivityDefinition'): The Implementation Guide contains no examples for this profile
WARNING: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGBusinessProcess'): The Implementation Guide contains no examples for this profile
WARNING: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGCodeSystem'): The Implementation Guide contains no examples for this profile
WARNING: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGConceptMap'): The Implementation Guide contains no examples for this profile
WARNING: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGImplementationGuide'): The Implementation Guide contains no examples for this profile
WARNING: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGLibrary'): The Implementation Guide contains no examples for this profile
WARNING: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGLogicalModel'): The Implementation Guide contains no examples for this profile
WARNING: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGMeasure'): The Implementation Guide contains no examples for this profile
WARNING: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGPlanDefinition'): The Implementation Guide contains no examples for this profile
WARNING: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGQuestionnaire'): The Implementation Guide contains no examples for this profile
WARNING: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGStructureDefinition'): The Implementation Guide contains no examples for this profile
WARNING: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGStructureMap'): The Implementation Guide contains no examples for this profile
WARNING: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGValueSet'): The Implementation Guide contains no examples for this profile
WARNING: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/Sgcode'): The Implementation Guide contains no examples for this extension
WARNING: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGGroupDefinition'): The Implementation Guide contains no examples for this profile
INFORMATION: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGImplementationGuide'): The Implementation Guide contains no explicitly linked examples for this profile
INFORMATION: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGLogicalModel'): The Implementation Guide contains no explicitly linked examples for this profile
INFORMATION: StructureDefinition.where(url = 'http://smart.who.int/base/StructureDefinition/SGStructureDefinition'): The Implementation Guide contains no explicitly linked examples for this profile

# These should all be matching SGStructureDefinition, not sure why they don't...
INFORMATION: ImplementationGuide/smart.who.int.base: ImplementationGuide.definition.resource[0]: This element does not match any known slice defined in the profile http://smart.who.int/base/StructureDefinition/SGImplementationGuide|1.0.0 (this may not be a problem, but you should check that it's not intended to match a slice)
INFORMATION: ImplementationGuide/smart.who.int.base: ImplementationGuide.definition.resource[1]: This element does not match any known slice defined in the profile http://smart.who.int/base/StructureDefinition/SGImplementationGuide|1.0.0 (this may not be a problem, but you should check that it's not intended to match a slice)
INFORMATION: ImplementationGuide/smart.who.int.base: ImplementationGuide.definition.resource[2]: This element does not match any known slice defined in the profile http://smart.who.int/base/StructureDefinition/SGImplementationGuide|1.0.0 (this may not be a problem, but you should check that it's not intended to match a slice)
INFORMATION: ImplementationGuide/smart.who.int.base: ImplementationGuide.definition.resource[3]: This element does not match any known slice defined in the profile http://smart.who.int/base/StructureDefinition/SGImplementationGuide|1.0.0 (this may not be a problem, but you should check that it's not intended to match a slice)
INFORMATION: ImplementationGuide/smart.who.int.base: ImplementationGuide.definition.resource[4]: This element does not match any known slice defined in the profile http://smart.who.int/base/StructureDefinition/SGImplementationGuide|1.0.0 (this may not be a problem, but you should check that it's not intended to match a slice)
INFORMATION: ImplementationGuide/smart.who.int.base: ImplementationGuide.definition.resource[5]: This element does not match any known slice defined in the profile http://smart.who.int/base/StructureDefinition/SGImplementationGuide|1.0.0 (this may not be a problem, but you should check that it's not intended to match a slice)
INFORMATION: ImplementationGuide/smart.who.int.base: ImplementationGuide.definition.resource[6]: This element does not match any known slice defined in the profile http://smart.who.int/base/StructureDefinition/SGImplementationGuide|1.0.0 (this may not be a problem, but you should check that it's not intended to match a slice)
INFORMATION: ImplementationGuide/smart.who.int.base: ImplementationGuide.definition.resource[7]: This element does not match any known slice defined in the profile http://smart.who.int/base/StructureDefinition/SGImplementationGuide|1.0.0 (this may not be a problem, but you should check that it's not intended to match a slice)
INFORMATION: ImplementationGuide/smart.who.int.base: ImplementationGuide.definition.resource[8]: This element does not match any known slice defined in the profile http://smart.who.int/base/StructureDefinition/SGImplementationGuide|1.0.0 (this may not be a problem, but you should check that it's not intended to match a slice)
INFORMATION: ImplementationGuide/smart.who.int.base: ImplementationGuide.definition.resource[9]: This element does not match any known slice defined in the profile http://smart.who.int/base/StructureDefinition/SGImplementationGuide|1.0.0 (this may not be a problem, but you should check that it's not intended to match a slice)
INFORMATION: ImplementationGuide/smart.who.int.base: ImplementationGuide.definition.resource[10]: This element does not match any known slice defined in the profile http://smart.who.int/base/StructureDefinition/SGImplementationGuide|1.0.0 (this may not be a problem, but you should check that it's not intended to match a slice)
INFORMATION: ImplementationGuide/smart.who.int.base: ImplementationGuide.definition.resource[11]: This element does not match any known slice defined in the profile http://smart.who.int/base/StructureDefinition/SGImplementationGuide|1.0.0 (this may not be a problem, but you should check that it's not intended to match a slice)
INFORMATION: ImplementationGuide/smart.who.int.base: ImplementationGuide.definition.resource[12]: This element does not match any known slice defined in the profile http://smart.who.int/base/StructureDefinition/SGImplementationGuide|1.0.0 (this may not be a problem, but you should check that it's not intended to match a slice)
INFORMATION: ImplementationGuide/smart.who.int.base: ImplementationGuide.definition.resource[13]: This element does not match any known slice defined in the profile http://smart.who.int/base/StructureDefinition/SGImplementationGuide|1.0.0 (this may not be a problem, but you should check that it's not intended to match a slice)
INFORMATION: ImplementationGuide/smart.who.int.base: ImplementationGuide.definition.resource[14]: This element does not match any known slice defined in the profile http://smart.who.int/base/StructureDefinition/SGImplementationGuide|1.0.0 (this may not be a problem, but you should check that it's not intended to match a slice)

4 changes: 2 additions & 2 deletions input/pagecontent/changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# SMART
### Version 1.0.0

Feel free to modify this index page with your own awesome content!
Initial Release
22 changes: 20 additions & 2 deletions input/pagecontent/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# SMART
### Overview

Feel free to modify this index page with your own awesome content!
This implementation guide contains base conformance resources for use in all WHO SMART Guidelines implementation guides.

See the [SMART IG Starter Kit](https://smart.who.int/ig-starter-kit/) for more information on building and using WHO SMART Guidelines.

### Dependencies

{% include dependency-table-short.xhtml %}

### Cross Version Analysis

{% include cross-version-analysis.xhtml %}

### Global Profiles

{% include globals-table.xhtml %}

### IP Statements

{% include ip-statements.xhtml %}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"resourceType": "StructureDefinition",
"id": "sg-groupdefinition",
"url": "http://worldhealthorganization.github.io/smart-base/StructureDefinition/sg-groupdefinition",
"id": "SGGroupDefinition",
"url": "http://smart.who.int/base/StructureDefinition/SGGroupDefinition",
"name": "SGGroupDefinition",
"title": "WHO SMART Guidelines Group Definition",
"status": "draft",
Expand All @@ -11,7 +11,7 @@
"kind": "resource",
"abstract": false,
"type": "Group",
"baseDefinition": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-groupdefinition",
"baseDefinition": "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-groupdefinition",
"derivation": "constraint",
"differential" : {
"element" : [
Expand Down
10 changes: 5 additions & 5 deletions sushi-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ id: smart.who.int.base
canonical: http://smart.who.int/base
name: SMARTBase
title: SMART Base
description: An empty Implementation Guide to be used as a starting point for building SMART Guidelines Implementation Guides
description: Base SMART Guidelines implementation guide to be used as the base dependency for all SMART Guidelines IGs
status: draft # draft | active | retired | unknown
version: 0.1.1
experimental: false
version: 1.0.0
# fhirVersion: 4.3.0 # https://www.hl7.org/fhir/valueset-FHIR-version.html
# fhirVersion: 5.0.0 # https://www.hl7.org/fhir/valueset-FHIR-version.html
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
license: CC-BY-SA-3.0-IGO
# license: CC0-1.0 # https://www.hl7.org/fhir/valueset-spdx-license.html
# jurisdiction: urn:iso:std:iso:3166#US "United States of America" # https://www.hl7.org/fhir/valueset-jurisdiction.html
publisher:
Expand Down Expand Up @@ -58,9 +60,7 @@ menu:

meta:
profile:
- SGImplementationGuide
# - http://smart.who.int/base/ImplementationGuide-SMARTImplementationGuide

- http://smart.who.int/base/StructureDefinition/SGImplementationGuide

# ╭───────────────────────────Less Common Implementation Guide Properties──────────────────────────╮
# │ Uncomment the properties below to configure additional properties on the ImplementationGuide │
Expand Down

0 comments on commit cbe6c4b

Please sign in to comment.