Non-ASCII not encoded correctly when assigned to db field as list

Issue #516 resolved
Ed McDonagh created an issue

The name Müller would be recorded correctly in PerformingPhysicianName for example. But the 'name' Müller\Smith would not be recorded correctly.

The issue seems to be that if we assign a MultiValue element to the database, it is entered as a python list and the characters are as they are passed, ie the above string would be encoded as: [u'M\xfcller', u'Smith'].

We therefore need to do one of two things:

  1. break any multivalue person names into a new table and have an instance per name.
  2. join the values together into a string.

Option 2 would be easy to implement and less disruptive!

Comments (8)

  1. Ed McDonagh reporter

    @georgstamm - the presentation issue with the physician's names you brought to my attention should now be fixed. The example above should now appear as Müller | Smith.

    This also improves the appearance of ASCII names too when they are MultiValue strings.

  2. Log in to comment