Stream: implementers
Topic: abbreviation library
Maximilian Reith (Jul 13 2018 at 06:55):
Moin(which means good morning in nothern germany),
I'm completely new here, but I'm trying to develop an abbreviation library for diagnosis. The practitioner should be able to create his own catalog of shortcuts for his diagnosis. Is the library ressource the best way of implementing such a feature?
Thanks Max
Lloyd McKenzie (Jul 13 2018 at 08:12):
Good morning :) You might look at ConceptMap - that would let you map from your local code (the abbreviation) to the official diagnosis code
Maximilian Reith (Jul 13 2018 at 09:00):
yes that might work, but could i map a simple Code from a Codesystem to one or more complex ressources? e.g. the doctor has a shortcut "broken leg", which consists (in his world) out of diagnosis(broken leg)(a condition in FHIR) and a treatment(plaster cast)(a procedure in FHIR).
Lloyd McKenzie (Jul 13 2018 at 09:15):
Ah, so you're wanting to create a bunch of resources in response to the selection of a code. The definition of the resources would be PlanDefinition. I guess you could use ConceptMap to link to the canonical URL of the PlanDefinition. Or alternatively, you could just use the abbreviation as the name or a keyword of the PlanDefinition
Maximilian Reith (Jul 13 2018 at 11:58):
Thank you Lloyd for the fast responses...i think i have to think about, which way to go
Stefan Lang (Aug 02 2018 at 09:57):
@Lloyd McKenzie Would PlanDefinition.useContext.valueCodeableConcept be a better place to put the code?
For example I have the code system along with a congruent ValueSet:
X: treatment of broken leg Y: treatment of hypertonia
and two corresponding PlanDefinitions:
<PlanDefinition> ... <useContext> <code> <system value="http://hl7.org/fhir/usage-context-type" /> <code value="workflow" /> </code> <valueCodeableConcept> <coding> <system value="http://my.company/CodeSystem/plan-types" /> <code value="X" /> </coding> </valueCodeableConcept> </useContext> ... </PlanDefinition> <PlanDefinition> ... <useContext> <code> <system value="http://hl7.org/fhir/usage-context-type" /> <code value="workflow" /> </code> <valueCodeableConcept> <coding> <system value="http://my.company/CodeSystem/plan-types" /> <code value="Y" /> </coding> </valueCodeableConcept> </useContext> ... </PlanDefinition>
The only downside I see here is that the search parameter "context-type-value" is only defined from FHIR R4 and not in STU3. But if that's an issue, a custom search parameter would solve.
Lloyd McKenzie (Aug 02 2018 at 13:00):
context is for searching to find the right plan. It doesn't actually influence what the plan is saying.
Stefan Lang (Aug 02 2018 at 16:31):
Right. Isn't that what @Maximilian Fechteler means?
Scenario:
The practioner sees "Oh, that patient apparently has a broken leg. What do I have to do (or document) now?"
From his "abbreviation library" (the ValueSet) he then chooses "broken leg" (the current context) and then look up his "action items" by finding the PlanDefinition with useContext = "broken leg"
Stefan Lang (Aug 02 2018 at 16:40):
The action items would be such things as "document a diagnosis", "apply a cast" "prescribe pain medication"
Maximilian Reith (Aug 03 2018 at 06:31):
yes that's what i meant... the plan shouldn't be dynamic or influenceable, just a fixed bunch of ressources depending on a codesystem.
But thought practical... where can i reference the ressources(e.g. condition and observation) in the plandefiniton or activitydefinition? the attribute documentation(relatedArtifact) in the plandefinition ressource, as well as the relatedArtifact attribute in the activitydefintion ressource, is for adding additional Information, not for adding the main information in this context of use. This might be acceptable, but is that how it is planned by the authors?
Stefan Lang (Aug 03 2018 at 08:41):
The resources that are expected results of the PlanDefinition are defined in action.output.
Since this is a definition, you don't refer to any resource instance here, but to the resource definition (or most likely a profile).
Mainly in your case you probably would use:
- action.output.type - the actual code identifying the FHIR resource type and
- action.output.profile - the canonical URL of your profile
Stefan Lang (Aug 03 2018 at 08:44):
Additionally, action.code would probably contain a relevant code, e.g. an OPS code for "apply plaster cast to a broken leg"
Stefan Lang (Aug 03 2018 at 08:45):
That code might then be found in the Procedure resource created due to the according action.output definition
Last updated: Apr 12 2022 at 19:14 UTC