Skip to content

Commit

Permalink
Updated profile definitions based on connectathon 37 discussions
Browse files Browse the repository at this point in the history
  • Loading branch information
brynrhodes committed Sep 30, 2024
1 parent c86d310 commit a225958
Show file tree
Hide file tree
Showing 25 changed files with 91 additions and 180 deletions.
10 changes: 5 additions & 5 deletions input/profiles/structuredefinition-sg-allergyintolerance.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
"definition" : "The WHO SMART Guidelines AllergyIntolerance profile defines conformance requirements and exchange expectations for AllergyIntolerance resources in WHO Smart Guidelines content.",
"constraint" : [
{
"key" : "1",
"key" : "ali-1",
"severity" : "error",
"human" : "extension: reasonRefuted is only permitted if status is refuted",
"expression" : "verificationStatus.coding.code.contains('refuted') or extension.where(url='http://hl7.org/fhir/StructureDefinition/allergyintolerance-reasonRefuted').empty()",
"xpath" : "not(f:verificationStatus/coding/code/@value != 'refuted' and f:extension/@url='http://hl7.org/fhir/StructureDefinition/allergyintolerance-reasonRefuted')"
}
],
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "AllergyIntolerance.extension:resolutionAge",
Expand All @@ -45,7 +45,7 @@
]
}
],
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "AllergyIntolerance.extension:reasonRefuted",
Expand All @@ -63,7 +63,7 @@
}
],
"condition" : [
"1"
"ali-1"
],
"mustSupport" : true
},
Expand Down Expand Up @@ -103,7 +103,7 @@
{
"id" : "AllergyIntolerance.verificationStatus",
"path" : "AllergyIntolerance.verificationStatus",
"min" : 1,
"min" : 0,
"max" : "1",
"mustSupport" : true
},
Expand Down
2 changes: 1 addition & 1 deletion input/profiles/structuredefinition-sg-careplan.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"id" : "CarePlan",
"path" : "CarePlan",
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "CarePlan.identifier",
Expand Down
2 changes: 1 addition & 1 deletion input/profiles/structuredefinition-sg-careteam.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"id" : "CareTeam",
"path" : "CareTeam",
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "CareTeam.identifier",
Expand Down
32 changes: 1 addition & 31 deletions input/profiles/structuredefinition-sg-condition.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,7 @@
"id" : "Condition",
"path" : "Condition",
"definition" : "A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern.",
"mustSupport" : false
},
{
"id" : "Condition.extension:dueTo",
"path" : "Condition.extension",
"sliceName" : "dueTo",
"short" : "What caused the Condition?",
"definition" : "Further conditions, problems, diagnoses, procedures or events or the substance that caused/triggered this Condition.",
"type" : [
{
"code" : "Extension",
"profile" : [
"http://hl7.org/fhir/StructureDefinition/condition-dueTo"
]
}
],
"mustSupport" : false
},
{
"id" : "Condition.extension:occurredFollowing",
"path" : "Condition.extension",
"sliceName" : "occurredFollowing",
"type" : [
{
"code" : "Extension",
"profile" : [
"http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing"
]
}
],
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "Condition.identifier",
Expand Down
20 changes: 14 additions & 6 deletions input/profiles/structuredefinition-sg-encounter.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"id" : "Encounter",
"path" : "Encounter",
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "Encounter.extension:statusReason",
Expand Down Expand Up @@ -97,6 +97,19 @@
],
"mustSupport" : true
},
{
"id" : "Encounter.episodeOfCare",
"path" : "Encounter.episodeOfCare",
"type" : [
{
"code" : "Reference",
"targetProfile" : [
"http://smart.who.int/base-clinical/StructureDefinition/sg-episodeofcare"
]
}
],
"mustSupport" : true
},
{
"id" : "Encounter.basedOn",
"path" : "Encounter.basedOn",
Expand Down Expand Up @@ -152,11 +165,6 @@
{
"id" : "Encounter.diagnosis.condition",
"path" : "Encounter.diagnosis.condition",
"alias" : [
"Admission diagnosis",
"discharge diagnosis",
"indication"
],
"type" : [
{
"code" : "Reference",
Expand Down
2 changes: 1 addition & 1 deletion input/profiles/structuredefinition-sg-episodeofcare.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"id" : "EpisodeOfCare",
"path" : "EpisodeOfCare",
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "EpisodeOfCare.identifier",
Expand Down
2 changes: 1 addition & 1 deletion input/profiles/structuredefinition-sg-group.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"id" : "Group",
"path" : "Group",
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "Group.identifier",
Expand Down
6 changes: 2 additions & 4 deletions input/profiles/structuredefinition-sg-immunization.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"id" : "Immunization",
"path" : "Immunization",
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "Immunization.identifier",
Expand Down Expand Up @@ -104,13 +104,11 @@
"path" : "Immunization.recorded",
"min" : 1,
"max" : "1",
"mustSupport" : true
"mustSupport" : true
},
{
"id" : "Immunization.primarySource",
"path" : "Immunization.primarySource",
"min" : 1,
"max" : "1",
"mustSupport" : true
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"xpath" : "exists(f:extension)"
}
],
"mustSupport": false
"mustSupport": true
},
{
"id" : "Immunization.identifier",
Expand Down
26 changes: 1 addition & 25 deletions input/profiles/structuredefinition-sg-location.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"id" : "Location",
"path" : "Location",
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "Location.identifier",
Expand Down Expand Up @@ -48,30 +48,6 @@
"max" : "1",
"mustSupport" : true
},
{
"id" : "Location.status",
"path" : "Location.status",
"min" : 1,
"max" : "1",
"mustSupport" : true,
"binding" : {
"strength" : "required",
"description" : "Indicates whether the location is still in use.",
"valueSet" : "http://hl7.org/fhir/ValueSet/location-status"
}
},
{
"id" : "Location.name",
"path" : "Location.name",
"min" : 1,
"max" : "1",
"mustSupport" : true
},
{
"id" : "Location.mode",
"path" : "Location.mode",
"mustSupport" : true
},
{
"id" : "Location.type",
"path" : "Location.type",
Expand Down
2 changes: 1 addition & 1 deletion input/profiles/structuredefinition-sg-measurereport.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"id" : "MeasureReport",
"path" : "MeasureReport",
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "MeasureReport.extension:reportedLocation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"xpath" : "exists(f:extension)"
}
],
"mustSupport": false
"mustSupport": true
},
{
"id" : "MedicationRequest.identifier",
Expand Down Expand Up @@ -60,14 +60,6 @@
{
"id": "MedicationRequest.status",
"path": "MedicationRequest.status",
"min": 1,
"max": "1",
"type": [
{
"code": "code"
}
],
"fixedCode": "completed",
"mustSupport": true
},
{
Expand Down
4 changes: 1 addition & 3 deletions input/profiles/structuredefinition-sg-medicationrequest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"id" : "MedicationRequest",
"path" : "MedicationRequest",
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "MedicationRequest.identifier",
Expand Down Expand Up @@ -51,8 +51,6 @@
{
"id" : "MedicationRequest.status",
"path" : "MedicationRequest.status",
"min" : 1,
"max" : "1",
"mustSupport" : true
},
{
Expand Down
6 changes: 3 additions & 3 deletions input/profiles/structuredefinition-sg-observation.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"Results",
"Tests"
],
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "Observation.extension:bodyPosition",
Expand Down Expand Up @@ -144,7 +144,7 @@
]
}
],
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "Observation.value[x]",
Expand All @@ -154,7 +154,7 @@
{
"id" : "Observation.dataAbsentReason",
"path" : "Observation.dataAbsentReason",
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "Observation.interpretation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"xpath" : "exists(f:extension)"
}
],
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "Observation.identifier",
Expand Down
46 changes: 45 additions & 1 deletion input/profiles/structuredefinition-sg-organization.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"id" : "Organization",
"path" : "Organization",
"mustSupport" : false
"mustSupport" : true
},
{
"id" : "Organization.identifier",
Expand All @@ -27,6 +27,13 @@
"max" : "*",
"mustSupport" : true
},
{
"id" : "Organization.identifier.use",
"path" : "Organization.identifier.use",
"min" : 1,
"max" : "1",
"mustSupport" : true
},
{
"id" : "Organization.identifier.system",
"path" : "Organization.identifier.system",
Expand Down Expand Up @@ -70,6 +77,43 @@
"path" : "Organization.telecom",
"mustSupport" : true
},
{
"id" : "Organization.telecom.extension:telecom-preferred",
"path" : "Organization.telecom.extension",
"sliceName" : "telecom-preferred",
"min" : 0,
"max" : "1",
"type" : [
{
"code" : "Extension",
"profile" : [
"http://hl7.org/fhir/StructureDefinition/iso21090-preferred"
]
}
],
"mustSupport" : true
},
{
"id" : "Organization.telecom.system",
"path" : "Organization.telecom.system",
"min" : 1,
"max" : "1",
"mustSupport" : true
},
{
"id" : "Organization.telecom.value",
"path" : "Organization.telecom.value",
"min" : 1,
"max" : "1",
"mustSupport" : true
},
{
"id" : "Organization.telecom.use",
"path" : "Organization.telecom.use",
"min" : 1,
"max" : "1",
"mustSupport" : true
},
{
"id" : "Organization.address",
"path" : "Organization.address",
Expand Down
Loading

0 comments on commit a225958

Please sign in to comment.