Hi Joey, welcome!
Am I correct you are trying to use Archie with a reference model that’s expressed as BMM but is not the openehr reference model? That’s quite exotic!
I’m not sure Archie supports that. But I’m somewhat sure it’s not been tested. @pieterbos
Would you be willing to elaborate on why you build an in house reference model?
Where you missing features from the openehr rm? Or are you in a different industry?
Then use your implementation in place of this, with the same examples.
If you want to actually represent data in the RM and want the tools Archie provides for that to work as well, that is more work - also more work for me to explain. You will need to implement the java classes plus something to return the metadata - a reflection based base class is provided in Archie for that last bit, but it will likely require some tinkering with a different RM to get that working 100%>
And then some things, such as the example generator, have custom code for the openEHR RM because it is rather hard to do in a generic way for all possible RMs. Those will need to be adapted if you want that.
Yes, I am in healthcare informatics. I also understand that it is not the norm to create a new reference model. I will direct message you the reasons. [Edit: I can’t figure out how to direct message on this forum?]
We have a working BMM and an AOM profile, that works in the ADL Workbench.
For now I just want to be able to programmatically validate our Archetypes against the BMM, so I’ll work on following the code in BuiltinReferenceModels for now. But yes, eventually we will need to validate data instances against the Archetypes/BMM.
I did reply to your private message, but there was a remove button on an extra blank message after your first message with the text content, which I clicked. Not sure if that removed you from the private thread?