Stream: python
Topic: create R4 classes using the SMART fhir-parser
Eric Haas (Oct 23 2018 at 17:39):
Has anybody generated R4 python models using the SMART fhir-parser, I looke at this AM but got an exception. see : https://chat.fhir.org/#narrow/stream/125-fhir.2Finfrastructure-wg/subject/why.20is.20there.20only.20an.20extension.20for.20element.2Eid.20type
Geoff Low (Oct 24 2018 at 15:40):
I had a fork of the fhir parser that included support for R4 (along with some other ideas that were a little more on the edge such as making the ValueSet an enum)
Eric Haas (Oct 24 2018 at 16:30):
can you share the link? Also did you make the primitives complex so that for example string supports extensions?
Pascal Pfiffner (Oct 24 2018 at 19:00):
You should be able to make primitives complex without changes to fhir-parser
, the Swift library does that already. You'd just have to provide the base classes and update the templates accordingly.
Eric Haas (Oct 25 2018 at 19:31):
I've looked at that a few times, but concluded is not for mere mortals like me - I've been asking around for a developer to take that on.
Eric Haas (Oct 28 2018 at 22:15):
OK have created a couple of PRs to smarts python parser to work with R4.
Eric Haas (Oct 28 2018 at 22:16):
(deleted)
Eric Haas (Oct 28 2018 at 22:17):
Thanks to Pascal
Geoff Low (Nov 04 2018 at 14:30):
cool, my fork is at https://github.com/glow-mdsol/fhir-parser/tree/feature/refactor_modules
Last updated: Apr 12 2022 at 19:14 UTC