← Back to team overview

oship-dev team mailing list archive

[Bug 627561] Re: issues in AuthoredResource

 

** Project changed: oship => oshippy

** Changed in: oshippy
    Milestone: 1.5 => None

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

Title:
  issues in AuthoredResource

Status in Open Source Health Information Platform - Python:
  In Progress

Bug description:
  languagesAvailable should return a set of strings that includes those keys in translations.
  currentRevision should return "uncontrolled" if isControlled returns false.

  The invariants below should be enforced. some require the terminological service.
  Original_language_valid: original_language /= void and then code_set(Code_set_id_languages).has_code(original_language.as_string)
  Languages_available_valid: languages_available /= Void and then languages_available.has(original_language)
  Revision_history_valid: is_controlled xor revision_history = Void 
  Current_revision_valid: (current_revision /= Void and not is_controlled) implies current_revision.is_equal(“(uncontrolled)”)
  Translations_valid: translations /= Void implies (not translations.is_empty and not translations.has(orginal_language.code_string))
  Description_valid: translations /= Void implies (description.details.for_all(d | translations.has_key(d.language.code_string)))

  Maybe it would be interesting to implement a representation method for
  this class.





References