The ADL 1.4 identifier syntax is here, and permits underscores. The ADL2 syntax for the type ARCHETYPE_HRID I think is not visible anywhere except code, so we’ll need to remedy that. The relevant code shows that underscores are accepted as well.
I would suggest using the proper specification name as various tools are starting to depend on consistent use of names across specifications, UML packages and classes, and archetypes. In fact I suspect that right now the ADL Workbench would not recognise an Extract archetype that didn’t have EHR_EXTRACT as the RM class qualifier, because the relevant BMM is named that way (I haven’t checked though).
I would go with the id template openEHR-EHR_EXTRACT-EXTRACT.something.v1.0.0. There are examples already of this in the archetype test repo.
I can live a few days more without having a definite policy
But the classes are there and people will want to use them.
I think Thomas proposal is in line with the other rmNames, like EHR and DEMOGRAPHIC (which are capitalized), and therefor indeed EHR_EXTRACT seems to me the best solution. Sorry for agreeing with previous suggestions.
I think the string matching should be case-insensitive, and the current regexes allow for any case. Various tools implementers would need to check to see if their tools match 'ehr_extract' to 'EHR_EXTRACT' etc.
I think the string matching should be case-insensitive, and the current regexes allow for any case. Various tools implementers would need to check to see if their tools match 'ehr_extract' to 'EHR_EXTRACT' etc.
This is like Diego and Pieter also suggested.
Okay, thanks.
I think the string matching should be case-insensitive, and the current
regexes allow for any case. Various tools implementers would need to
check to see if their tools match 'ehr_extract' to 'EHR_EXTRACT' etc.
Note that for class and property names, we tend to stick to typical programming convantions, which is
class - first letter capital
property / method name - first letter lower-case
One reason to do this is to be able to distinguish a class name on its own, e.g. in an ADL archetype, and not mix it up with a property name. The ADL workbench does this, and I would argue we want to keep these rules.