Skip to content

Commit

Permalink
Fix encoding for non-latin Patient Names and MRNs comparison (#115)
Browse files Browse the repository at this point in the history
* Update listing.py

* Update changelog.rst

---------

Co-authored-by: Ramon Bartl <[email protected]>
  • Loading branch information
toropok and ramonski authored Oct 26, 2024
1 parent bb507f9 commit 77d6dcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog
1.5.0 (unreleased)
------------------

- #115 Fix non-latin names and MRNs comparison in a listing view
- #114 Fix jsonapi returns None for sample's DateOfBirth field
- #113 Added estimated birthdate field to Patient content type
- #112 Use default TZ when calculating birthdate if `on_date` param is not set
Expand Down
4 changes: 2 additions & 2 deletions src/senaite/patient/adapters/listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def folder_item(self, obj, item, index):
after_icons += self.icon_tag("id-card-red", **kwargs)
item["after"].update({"getId": after_icons})

sample_patient_mrn = obj.getMedicalRecordNumberValue
sample_patient_fullname = obj.getPatientFullName
sample_patient_mrn = api.to_utf8(obj.getMedicalRecordNumberValue)
sample_patient_fullname = api.to_utf8(obj.getPatientFullName)

item["MRN"] = sample_patient_mrn
item["Patient"] = sample_patient_fullname
Expand Down

0 comments on commit 77d6dcb

Please sign in to comment.