Stream: dotnet
Topic: Seeking documentation for ClassMapping, PropertyMapping
Kirt Noel (Oct 18 2019 at 18:55):
I'm looking for some documentation describing the intent and proper use the ClassMapping, PropertyMapping classes. Can anyone point me in the right direction?
Brian Postlethwaite (Oct 18 2019 at 21:34):
Those are some usually internal classes, and as such haven't been documented.
However some of us have been using them too.
What do you want to do with them?
(and they are only applicable to the erosion specific pocos)
Brian Postlethwaite (Oct 18 2019 at 21:34):
If you're wanting to do serialization and parsing, you don't need to directly interact with them.
Kirt Noel (Oct 19 2019 at 00:00):
Hello Brian,
I'm currently using the ISourceNode interface to crystallize FHIR resources from local POCOs.
However, I was wondering whether the ClassMapping/PropertyMapping classes could be suited for mapping properties from an arbitrary class (or interface) to a corresponding FHIR resource. The notion of a PropertyMap struck me as a potential avenue map POCOs to FHIR resources in a declarative manner.
Thanks,
Kirt
Brian Postlethwaite (Oct 19 2019 at 03:40):
That's been considered, and could be possible, but noone has actually done that to date I know of.
And the new serialization classes might be a better way of doing it.
I personally haven't tried that code out myself though.
Last updated: Apr 12 2022 at 19:14 UTC