Issues
- Add explicit functions to validate archetypes and opts on I_DEFINITION_ADL14 and I_DEFINITION_ADL2 interface definitionsSPECPR-291Thomas Beale
- Require at least one ADL and OPT instead of bothSPECPR-287
- Add delete_xxx for archetypes and opts on the DEFINITIONS component conformanceSPECPR-286
- Specify how list_all_xxx (archetypes, opts, queries) will be tested in the DEFINITIONS component.SPECPR-285
4 of 4
Add explicit functions to validate archetypes and opts on I_DEFINITION_ADL14 and I_DEFINITION_ADL2 interface definitions
Raise
Analysis
Raise
Analysis
Description
Created December 27, 2018 at 3:45 PM
Updated February 26, 2019 at 4:59 AM
Activity
Show:
Pablo PazosFebruary 26, 2019 at 4:59 AM
Operations valid_archetype(), valid_opt() and valid_artefact() where added to the spec on commit https://github.com/openEHR/specifications-SM/commit/3da77e559887a52a61bf1f2f4c2e38520c09a608
Looks good!
@Thomas about the naming, would it be better to name those “validate_xxx” instead of “valid_xxx”? Just thinking about the action behind the operation.
Validation of archetypes and opts should be a functionality every implementation should have. The I_DEFINITION_ADL14.upload_opt(), I_DEFINITION_ADL14.upload_archetype() and I_DEFINITION_ADL2.upload_artefact() imply a validation of the uploaded resource should happen.
It would be useful to have a separate, explicit, validation function on theses interfaces to be able to test that individually, and to detect validation differences between implementations. Also is useful while developing since developers can validate their artifacts while developing.
For instance the I_DEFINITION_QUERY has an is_valid() function to validate queries. Also to be consistent, would be useful to have such functions on all the interfaces that deal with resources that should be validate somehow.
REF: https://specifications.openehr.org/releases/SM/latest/openehr_platform.html#_i_definition_adl14_interface
REF: https://specifications.openehr.org/releases/SM/latest/openehr_platform.html#_i_definition_adl2_interface