Hello,
We are having some problems with Reference Model class PARTICIPATION.
We want to define an archetype of COMPOSITION type and state, that it could have two types of participants: Doctors and Patients; At least one Doctor and one Patient participant must be specified.
After we create an archetype (we use Ocean Archetype Editor v2.2) and constrain PARTICIPATION.function using “at0007” = Doctor & “at0008” = Person, we get following XML (I removed all unnecessary elements):
participations PARTICIPATION function DV_CODED_TEXT defining_code CODE_PHRASE local at0007 PARTICIPATION function DV_CODED_TEXT defining_code CODE_PHRASE local at0008 false false true false true 0The problem with this archetype is this:
There is no “node_id” specified on neither of PARTICIPATION alternatives (C_COMPLEX_OBJECTs).
Furthermore, in AOM 1.5 specification, C_MULTIPLE_ATTRIBUTE class description (page 39) is validation rule, that sounds like this:
<…>VACMI: child node identification: any object node added as a child to a container
attribute must have a node identifier.<…>
And this rule is being violated.
My questions are:
- How would we query & bind those constraints with data if we do not have node_id neither on constraint nor on data?
- How would we validate invariant “VACMI” on this C_MULTIPLE_ATTRIBUTE node?
My suggestions for fixing this issue would be:
- Derive PARTICIPATION class from “Locatable” or “Pathable” so that data could be attributed with node_id.
- Get rid of validation rule “VACMI” (this does not solve data <—> constraint binding issue);
- Any other suggestions?
Regards,
Justinas Prelgauskas,
PhD student at Kaunas University of Technology