← Back to team overview

oship-dev team mailing list archive

[Bug 609156] Re: Invariants not implemented in class DvText

 

** 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/609156

Title:
  Invariants not implemented in class DvText

Status in Open Source Health Information Platform - Python:
  Fix Committed

Bug description:
  The following invariants are not implemented:

  Mappings_valid: mappings /= void implies not mappings.is_empty
  Formatting_valid: formatting /= void implies not formatting.is_empty
  Value_valid: value /= void and then not value.is_empty and then not (value.has(CR) or value.has(LF))
                     Maybe this is the reason why class OPENEHR_DEFINITIONS was created.

  Language_valid: language /= Void implies code_set(Code_set_id_languages).has_code(language)
  Encoding_valid: encoding /= Void implies code_set(Code_set_id_character_sets).has_code(encoding)

  Here we will need to use openehr terminology.

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





References