We have been through this a long time ago I think, with Koray having the exact question and opinion I had.
The downside if you don’t allow this kind of constraint(!) on functional attributes in archetypes, here you cannot constrain the other two (real) attributes when modelling an archetype either because they depend on the actual time when documenting data and thus you don’t really have a way of constraining it at all.
How to actually handle this generically when you receive actual attribute values that are approximately correct, but not - say – to the second, seems problematic though as Heath has just said.
You can hardly reject an APGAR 5 min score because it was documented to be taken after 5 min and 2 seconds (who knows it that exact anyway!).
In other archetypes, a difference of a few seconds may of course be very significant.
Maybe all this is an indication that (some) fixed events like the ones in the APGAR archetype should be modelled differently - e.g. a repeated Cluster with an explicit time element (or a coded text with its values tied to the respective Snomed codes, something like this (even if it seems less elegant). And then avoid constraining the offset.
To me it is not too helpful to formally constrain the offset without also formally defining what the base line (origin) is (=the time of birth). This is just indicated in the purpose of the archetype.
Since you cannot really easily do this, I don’t see much value in modelling this by constraining the offset. And there aren’t many other example where the offset is constrained in archetypes I have seen. Defining the precedence of time and offset would be another way as Koray says.
By the way, EVENT/Offset is actually not the only functional attribute that I have seen constrained:
· is_integral for a DV_PROPORTION or
· type for a PARTY_RELATIONSHIP (here type==name, which makes it a bit easier)
are others, but they are probably easier to manage than the offset.
We used to have a check in CKM to at least inform about these “commonly constrained functional properties” as we called them, but took it out, because it was too confusing.
Cheers
Sebastian
(attachments)
