Stream: R3/R4 Conversion work
Topic: ActivityDefinition structure rework
Kenneth Myhra (Nov 28 2018 at 20:15):
I'm working on the AcitvityDefinition map and trying to map contributor (R3) to author, editor, etc (R4).
I have the following conditions, but I still end up with all 4 fields in my R4 output as if all the conditions evaluate to true. The R3 input contains only one contributor of type "author".
src.contributor as vs where vs.type = "author" then { vs.contact -> tgt.author; }; src.contributor as vs where vs.type = "editor" then { vs.contact -> tgt.editor; }; src.contributor as vs where vs.type = "reviewer" then { vs.contact -> tgt.reviewer; }; src.contributor as vs where vs.type = "endorser" then { vs.contact -> tgt.endorser; };
Grahame Grieve (Nov 29 2018 at 02:01):
copy how I did it in Library
Kenneth Myhra (Nov 29 2018 at 07:55):
Thanks, that did the trick! One outstanding issue on ActivityDefintion before I can consider it done. I can't map ReferralRequest for attribute kind since it is not part of http://build.fhir.org/valueset-request-resource-types.html. Should I just ignore it?
Grahame Grieve (Nov 29 2018 at 08:22):
it changes to...
Grahame Grieve (Nov 29 2018 at 08:23):
ServiceRequest
Kenneth Myhra (Nov 29 2018 at 08:24):
Thanks!
Grahame Grieve (Nov 29 2018 at 08:25):
I'm going to do the ReferralRequest --> ServiceRequest now
Kenneth Myhra (Nov 29 2018 at 08:34):
How do we usually merge a conceptmap back to R4 when two values have merged like in the ServiceRequest case. It now maps both ProcedureRequest and ReferralRequest to ServiceRequest, just pick one? :)
Grahame Grieve (Nov 29 2018 at 08:35):
it's tricky... but there was a case in R3...
Grahame Grieve (Nov 29 2018 at 08:45):
look in implementations\r2maps\R3toR2\ProcedureRequestDO.map
Kenneth Myhra (Nov 29 2018 at 09:33):
Issued a PR for ActivityDefinition now. I'll look into the conceptmap thingy tonight
Grahame Grieve (Nov 29 2018 at 10:11):
great. I just made a PR for working conversions for those resources
Kenneth Myhra (Dec 18 2018 at 20:17):
look in implementations\r2maps\R3toR2\ProcedureRequestDO.map
Sorry for late answer, but I looked into this and there was no obvious discriminator like the intent attribute for ProcedureRequest that lets me convert back to R3 easily
Grahame Grieve (Dec 18 2018 at 20:38):
no. it's an underlying challenge
Last updated: Apr 12 2022 at 19:14 UTC