← Back to team overview

oship-dev team mailing list archive

[Bug 625975] Re: some issues in Version and IVersion

 

** Changed in: oship
       Status: New => In Progress

-- 
some issues in Version and IVersion
https://bugs.launchpad.net/bugs/625975
You received this bug notification because you are a member of OSHIP
Development Team, which is subscribed to Open Source Health Information
Platform.

Status in Open Source Health Information Platform (OSHIP): In Progress

Bug description:
	

The attribute contribution is not set in the initializer.



The invariants below are not enforced:

Contribution_valid: contribution /= Void and contribution.type.is_equal(“CONTRIBUTION”)

Preceding_version_uid_validity: uid.version_tree_id.is_first xor preceding_version_uid /= Void

Lifecycle_state_valid: lifecycle_state /= Void and then terminology(Term_id_openehr).has_code_for_group_id(Group_id_version_lifecycle_state,

lifecycle_state.defining_code)



This last invariant should be implemented through the terminological service.



Maybe it would be interesting to have a representation function for this class.





References