-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Utilizing FHIR extensions for custom Patient fields. #12
Comments
If you use FHIR extensions instead, you can write an extension handler to map these values into the patients extended data (https://help.santesuite.org/developers/service-apis/hl7-fhir/extending-fhir-interfaces#extension-handlers). An example is available in the source tree at https://github.com/santedb/santedb-fhir/blob/version/3.0/SanteDB.Messaging.FHIR/Extensions/Patient/NationalityExtension.cs. This is the easiest approach. If you must extend the patient resource, then you will need to write a handler for the new resource, including all of the serialization logic provided by Firely (https://github.com/FirelyTeam/firely-net-sdk). This will give you maximum flexibility in the structure of the resource type at a significant cost to undertake. Note that both methods would use extensions on the internal data structure in SanteDB, which cannot be queried. For example, it would be possible to retrieve the county, sub-county and ward when retrieving a patient. It would not be possible to retrieve all patients in a county, sub-county or ward. To add query support means extending the schema in the system which is not supported using plugins. |
Trevor is correct that the extension method is the route with the least amount of effort. Additionally, you may want to consider the information modeling, since county or subCounty would be attributes of an address rather than a patient, this would be important when writing your extension handler - as you can store the additional data in appropriate RIM model fields ( You can also add custom address part types by registering new concepts for the address types and ensuring those concepts belong to the |
Thanks @justin-fyfe @ThreeSevenths Let me try that. I will let you know how it goes. |
I have the following FHIR profile. I would like to capture additional data on the Patient resource posted to the MPI via the FHIR API.
How can I go about this.
The text was updated successfully, but these errors were encountered: