Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions docs/UML/classes/org.openehr.base.base_types.template_id.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,22 @@ h|*Class*
2+^h|*TEMPLATE_ID*

h|*Description*
2+a|Identifier for templates. Lexical form to be determined.

2+a|Identifier for templates. The template ID is strongly recommended to follow the link:https://specifications.openehr.org/releases/AM/development/AOM2.html#_archetype_hrid_class[HRID format].
For backwards compatibility reasons a free text string is still allowed. If the TEMPLATE_ID string matches the requirements for ARCHETYPE_HRID (function is_archetype_hrid is TRUE), it is assumed to be an ARCHETYPE_HRID. Thus it can safely be parsed into the individual attributes of that class, notably including the specifications for semantic versioning.
h|*Inherit*
2+|`<<_object_id_class,OBJECT_ID>>`
h|*Functions*
^h|*Signature*
^h|*Meaning*

h|*1..1*
|*is_archetype_hrid* (): `link:/releases/BASE/{base_release}/foundation_types.html#_boolean_class[Boolean^]`
a|True if `_value_` matches the regular expression `^(?<namespace>(?:(?:[a-zA-Z_][a-zA-Z0-9_-])(?:.[a-zA-Z_][a-zA-Z0-9_-])+]*)+)::)
(?<rm_publisher>[a-zA-Z][a-zA-Z0-9_]+)-
(?<rm_package>[a-zA-Z][a-zA-Z0-9_]+)-
(?<rm_class>[a-zA-Z][a-zA-Z0-9_]+)\.
(?<concept_name>[a-zA-Z][a-zA-Z0-9_-]+)\.
(?<release_version>v\d+(?:\.\d+){0,2})
(?:-(?<version_status>[a-zA-Z0-9]+))?
(?:\.(?<build_count>\d+))?$`
|===