Stream: dotnet
Topic: Converting Raw data into FHIR format
jagjot singh Wadali (Jul 14 2021 at 13:02):
Hi Everyone,
In our Application, we have patient's prescription data saved in the different tables in the database. For a single prescription, there are several columns including physical examination & history, allergies, medication, advice, diagnosis, etc for a specific patient.
I need to write a c# code where I can convert all this prescription information including patient information into FHIR format. I had tried writing c# code but I faced some issues:-
- We don't have any FHIR server implemented but just have to map the data from the database in FHIR, in this case, certain terminologies I don't understand are taken from the FHIR server. For example
"entry": [
{
"fullUrl": "Composition/3b990853-f0fa-4046-8388-d71dd93a0fa1",
"resource": {
"resourceType": "Composition",
"id": "3b990853-f0fa-4046-8388-d71dd93a0fa1",
"identifier": {
"system": "https://www.max.in/document",
"value": "3b990853-f0fa-4046-8388-d71dd93a0fa1"
},
In the above-mentioned example, I don't have any Composition in the FullURL parameter.
- In the prescription format specified in SNOMED CT, this is the code for Prescription 440545006. And in the JSON structure of prescription, there is an only practitioner, patient, and medication however there is no information regarding allergies or diagnosis or complaints. How to include all this information in prescription FHR
I tried to create a model class from JSON, but certain parameters remain null which doesn't make a valid FHIR format.
Anyone who had implemented Converting raw data into prescription in c# kindly help.
Ewout Kramer (Jul 14 2021 at 13:09):
I think your question is more general about how to convert a prescription in your database to a Bundle containing several FHIR resources, and less about C#. Moving your question to the implementers
channel would give you a larger audience.
I tried to create a model class from JSON, but certain parameters remain null which doesn't make a valid FHIR format.
This could be a C# specific question, but I am not sure - what did you mean by "create a model class"? Did you use a class from the .NET library and then serialized to json? What did you try exactly?
Last updated: Apr 12 2022 at 19:14 UTC