diff --git a/input/examples/Library-manifest-example.json b/input/examples/Library-manifest-example.json index 86ddb9f..2c22508 100644 --- a/input/examples/Library-manifest-example.json +++ b/input/examples/Library-manifest-example.json @@ -135,10 +135,26 @@ "display": "Danger signs Profile" }, { - "extension": [{ - "url": "http://hl7.org/fhir/StructureDefinition/artifact-isOwned", - "valueBoolean": true - }], + "extension": [ { + "url": "http://hl7.org/fhir/StructureDefinition/artifact-isOwned", + "valueBoolean": true + }, + { + "url": "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-intendedUsageContext", + "valueUsageContext": { + "code": { + "system": "http://terminology.hl7.org/CodeSystem/usage-context-type", + "code": "focus" + }, + "valueCodeableConcept": { + "coding": [ { + "system": "http://snomed.info/sct", + "code": "95821001" + } ], + "text": "Neonatal hearing loss (disorder)" + } + } + } ], "type": "composed-of", "resource": "http://hl7.org/fhir/uv/crmi/PlanDefinition/publishable-example", "_resource": { diff --git a/input/extensions/StructureDefinition-crmi-intendedUsageContext.json b/input/extensions/StructureDefinition-crmi-intendedUsageContext.json new file mode 100644 index 0000000..8005100 --- /dev/null +++ b/input/extensions/StructureDefinition-crmi-intendedUsageContext.json @@ -0,0 +1,85 @@ +{ + "resourceType": "StructureDefinition", + "id": "crmi-intendedUsageContext", + "extension" : [{ + "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm", + "valueInteger" : 1 + }, + { + "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg", + "valueCode" : "cds" + }, + { + "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status", + "valueCode" : "trial-use" + }], + "url": "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-intendedUsageContext", + "name": "CRMIIntendedUsageContext", + "title": "CRMI Intended Usage Context", + "status": "active", + "experimental": false, + "date": "2025-10-24", + "publisher": "HL7 International / Clinical Decision Support", + "contact": [ + { + "telecom": [ + { + "system": "url", + "value": "http://www.hl7.org/Special/committees/dss" + } + ] + } + ], + "description": "An intended usage context associated with the dependency on which it appears. When the dependency is packaged, this usageContext will be applied to the packaged artifact.", + "purpose": "This extension allows for the specification of an intended usage context associated with the dependency on which it appears. This allows for usage contexts to be defined in a context-specific way and then applied to the artifact when packaged.", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "RelatedArtifact" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Intended Usage Context", + "definition": "An intended usage context associated with the dependency on which it appears. When the dependency is packaged, this usageContext will be applied to the packaged artifact.", + "min": 0, + "max": "1" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "type": [ + { + "code": "uri" + } + ], + "fixedUri": "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-intendedUsageContext" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "type": [ + { + "code": "UsageContext" + } + ] + } + ] + } +} diff --git a/input/profiles/StructureDefinition-crmi-manifestlibrary.json b/input/profiles/StructureDefinition-crmi-manifestlibrary.json index 13bdc99..8619a8c 100644 --- a/input/profiles/StructureDefinition-crmi-manifestlibrary.json +++ b/input/profiles/StructureDefinition-crmi-manifestlibrary.json @@ -289,6 +289,18 @@ }], "mustSupport": true }, + { + "id": "Library.relatedArtifact:component.intendedUsageContext", + "path": "Library.relatedArtifact.extension", + "sliceName": "intendedUsageContext", + "min": 0, + "max": "*", + "type": [{ + "code" : "Extension", + "profile" : ["http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-intendedUsageContext"] + }], + "mustSupport": true + }, { "id": "Library.relatedArtifact:component.type", "path": "Library.relatedArtifact.type", @@ -363,6 +375,18 @@ "max": "*", "mustSupport": true }, + { + "id": "Library.relatedArtifact:component.intendedUsageContext", + "path": "Library.relatedArtifact.extension", + "sliceName": "intendedUsageContext", + "min": 0, + "max": "*", + "type": [{ + "code" : "Extension", + "profile" : ["http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-intendedUsageContext"] + }], + "mustSupport": true + }, { "id": "Library.relatedArtifact:dependency.type", "path": "Library.relatedArtifact.type",