Well major version only is going to get latest of that version, which is not really what you want to do when citing an existing model, whereas if you just want to ‘refer’ to the latest (whatever it is), sure. So ideally we need support for minor+patch version as well.
Agree. It relates a bit to the discussion wether a new major version means a new archetype. Clinically to me that’s a strange concept, but technically it makes a lot of sense. I think we should discuss this a bit to get so,e consensus for cases like this.
Yes, agree.
For now if you want to specify an explicit version, you can use the citeable identifier and add the asset version, e.g. https://ckm.openehr.org/ckm/archetypes/1013.1.3574/9 for the currently latest published version.
This was my original problem: this ID is not in an archetype, so the only way to figure it out given a particular archetype is make some sort of query to CKM REST API.
In addition, if you want to point to the latest published i.e. current stable version, you will be able to do this. Again, this works with the the citeable id as well as with the archetype id:
In all of these cases, you can append an action, for example to go the adl tab of the latest published bp v2 version:
/ckm/archetypes/openEHR-EHR-OBSERVATION.blood_pressure.v2/latestpublished/adl
And because it is a little bit complex, we have also extended the Share with Colleague tab, so that you can construct the URL if needed:
I’ve been a user of CKM URIs since forever and they work really well. Love the “latestpublished”, although I could see just “latest” for obtaining the latest published one in general, as it is possible to point to specific non-published ones if needed
Well, you will actually be able to use “latest” as well. However, this is not the same as “latestpublished”.
“latest” is the same as not stating anything, i.e. it points to the latest and greatest, but that may not necessarily be stable/published, generally speaking. In practice, I believe, the archetype is often republished immediately, especially for patches, but this is an editorial decision.
E.g., at the time of writing
/ckm/archetypes/openEHR-EHR-OBSERVATION.blood_pressure.v2/latestpublished
is the same as
/ckm/archetypes/openEHR-EHR-OBSERVATION.blood_pressure.v2/2.0.8
And this happens to also be the same as
/ckm/archetypes/openEHR-EHR-OBSERVATION.blood_pressure.v2/latest
and /ckm/archetypes/openEHR-EHR-OBSERVATION.blood_pressure.v2
However, if e.g. @varntzen chooses to commit a 2.0.9-alpha version to the trunk without republishing it immediately, then /latestpublished will stay at 2.0.8 whereas /latest will now point to 2.0.9-alpha.