Is DV_STATE and it's profile constraint C_DV_STATE used anywhere in the specs?

Ah - ok! BMM wasn’t designed for that, but it’s easy to fake by manual inclusion of course.

NB: there is a line model_name = <"xxx"> that you will see in schemas intended to be top-level models.

rm_publisher = <"openehr">
schema_name = <"am">
rm_release = <"2.2.0">
model_name = <"AOM2">

If a BMM files doesn’t have that, it probably won’t function on its own.

If you want to implement the inclusion logic (not saying you should!), it’s here

I didn’t know about the " model_name" rule. I should include that in the validator.

Thank you for sharing your code. I have something similar to build a list of available models:

1 Like

Hi @thomas.beale , I have created an issue in about this: [SPECPR-379] AOM/AP 1.4 + data_types review about DV_STATE and C_DV_STATE - openEHR JIRA

1 Like