Nelly-Barret / BETTER-fairificator

The fairification tools for BETTER project.
https://www.better-health-project.eu/
0 stars 0 forks source link

Value is not mapped to ontology values? #76

Closed Nelly-Barret closed 1 week ago

Nelly-Barret commented 1 week ago
 {
    _id: ObjectId('6673fada7e8b160f7618ab8d'),
    recordedBy: { reference: { value: 'Hospital/1' }, type: 'Hospital' },
    instantiate: { reference: { value: 'Examination/95' }, type: 'Examination' },
    basedOn: { reference: 'Sample/20LD811194', type: 'Sample' },
    subject: { reference: 'Patient/7.1694429792529e+18', type: 'Patient' },
    createdAt: ISODate('2024-06-20T11:48:10.000Z'),
    identifier: { value: 'ExaminationRecord/668' },
    resourceType: 'ExaminationRecord',
    value: 'Naturale'
  },

Birth method is a categorical Examination, so its value should be a codeableconcept (the one for natural birth)

Nelly-Barret commented 1 week ago

Same applies for the Male/Female categorical value:

  {
    _id: ObjectId('66743d8f7e8b160f7618ceab'),
    recordedBy: { reference: { value: 'Hospital/1' }, type: 'Hospital' },
    instantiate: { reference: { value: 'Examination/73' }, type: 'Examination' },
    basedOn: { reference: 'Sample/20LD811192', type: 'Sample' },
    subject: { reference: 'Patient/6.73808832627831e+18', type: 'Patient' },
    createdAt: ISODate('2024-06-20T16:32:47.000Z'),
    identifier: { value: 'ExaminationRecord/568' },
    resourceType: 'ExaminationRecord',
    value: 'M'
  }
Nelly-Barret commented 1 week ago

The problem has been introdued since #73 : I accidentally gave self.metadata instead of self.mapped_values to the Transform class. PyCharm auto-correct... 🙄

I fixed it through https://github.com/Nelly-Barret/BETTER-fairificator/pull/78