How to create BackboneElement for Carin BB

62 views
Skip to first unread message

jineesh M G

unread,
Feb 25, 2021, 5:02:47 AM2/25/21
to FHIR DOTNET
Can anybody help me to create custom resource for Carin BB. There is one supportingInfo property in BackboneElement

Thanks,
MG

Mirjam Baltus

unread,
Feb 25, 2021, 5:33:35 AM2/25/21
to FHIR DOTNET
The Carin BB project has defined several profiles, which are all based on regular FHIR resource types. With the Firely .Net SDK you can use one of those from Hl7.Fhir.Model and fill it with the data you have. There is no need to create any custom structure.
For example, if you need to work with 'C4BB Coverage', this is a 'Coverage' resource, and you can do a 'var c = new Coverage();' to initialize your object and work with that.

Op donderdag 25 februari 2021 om 11:02:47 UTC+1 schreef jineesh M G:

jineesh M G

unread,
Feb 25, 2021, 6:48:14 AM2/25/21
to FHIR DOTNET
Hi Mirjam,

Thanks for your support. I understood that. But I am particularly stuck on the some properties. For example in the case of Coverage there is "Class " and "class:group"(Slice definition and Backborn element). I could not find a way to create those properties to to Coverage object. Could you please point out to some resources?

Thanks,
MG

jineesh M G

unread,
Feb 25, 2021, 7:18:11 AM2/25/21
to FHIR DOTNET
Hi Mirjam, 

Please ignore my previous comment. Actually, there is no issue with Coverage but I have issues with C4BB-ExplanationOfBenefit. 
There is a property "SupportInfo" and "supportingInfo:admissionperiod" I could not find a way to add that property. Those are slice definition and Backborn element


Mirjam Baltus

unread,
Feb 25, 2021, 7:39:45 AM2/25/21
to FHIR DOTNET

Ah, yes, that's a confusing thing when you encounter slicing for the first time. The 'admissionperiod' part of the name is just a human display name of that slice of 'supportingInfo'. Filling it in, is just filling in the supportingInfo field, while you adhere to the rules in the definition. Something like this could work:

```
            var eob = new ExplanationOfBenefit();
            var admissionperiod = new ExplanationOfBenefit.SupportingInformationComponent();
            admissionperiod.Category = new CodeableConcept("https://build.fhir.org/ig/HL7/carin-bb/CodeSystem-C4BBSupportingInfoType.html", "admissionperiod");
            admissionperiod.Timing = new Period(new FhirDateTime("2021-01-15"), new FhirDateTime("2021-01-19"));
            eob.SupportingInfo.Add(admissionperiod);
```

Op donderdag 25 februari 2021 om 13:18:11 UTC+1 schreef jineesh M G:

jineesh M G

unread,
Feb 25, 2021, 11:56:07 PM2/25/21
to FHIR DOTNET
Thanks Mirjim. Actually, I got this work. 

MG
Reply all
Reply to author
Forward
0 new messages