Continuing my explorations with C# and openEHR I have developed an application to create concrete class models from an OPT template. This builds on top of the nuget packages already published.
It can serialise and deserialise directly from these classes and to a large extent hides the RM entirely.
Still a little testing to do, but if any .net people want to help with the testing then get in touch.
I’m on a little break at the moment but will be in touch when I am back home. In the meantime if you have an example OPT file then paste it on here or email it to me directly.
I got sidetracked for a bit, but have picked the project up again and, in doing so, found a few ‘bugs’ in my approach.
I have refactored a lot of the code, and I am doing some more rigorous testing.
I’m almost there, so I will post some updates over the weekend.
I just need to do some final testing to make sure that the JSON generated actually loads to a CDR.
I’ll be using ehrBase for that. I don’t anticipate any issues, but it’s the final layer of testing.
There are still several ‘to do’ items on my backlog - but they are mainly edge cases…