Stream: implementers
Topic: Problem with Code.Coding cardinality
Tu Quoc Nguyen (Sep 30 2021 at 11:33):
Hello,
I want to implement a profiled condition (https://simplifier.net/packages/kbv.ita.eau/1.0.2/files/319389) with the .NET/C# API on FHIR R4. I am not really sure where the problem with the coding is, but I keep getting the error:
[ERROR] Instance count for 'Condition.code.coding:ICD-10-GM' is 0, which is not within the specified cardinality of 1..1 (at Bundle.entry[5].resource[0].code[0] via Bundle.entry[0].resource[0].section[2].entry[0])
The C# code:
grafik.png
The condition in Postman:
grafik.png
Anyone got a tip for me?
Lloyd McKenzie (Sep 30 2021 at 14:02):
@Ardon Toonstra ?
Ardon Toonstra (Sep 30 2021 at 14:18):
Do we know that the resource in entry[5] also has the .code and system? Could you share the entire Bundle?
@Luud Slagter , could you have a look at it?
Simone Heckmann (Sep 30 2021 at 14:50):
Feel free to ask questions pertaining to KBV specifications in https://chat.fhir.org/#narrow/stream/208065-german.2Fkbv (also in English if you prefer).
Simone Heckmann (Sep 30 2021 at 14:55):
The ICD-10 code looks good to me. I think we really need the full resource so we can try and reproduce the error, @Tu Quoc Nguyen
Tu Quoc Nguyen (Sep 30 2021 at 15:06):
@Ardon Toonstra The Bundle.Entry[5] is the condition-resource itself. According to the composition (https://simplifier.net/eau/kbvpreaucomposition) the code and system are different and are not the same.
Composition-Resource:
grafik.png
Condition-Resource:
grafik.png
@Ardon Toonstra
@Simone Heckmann
Here is the full bundle:
Bundle-eAU.xml
Simone Heckmann (Sep 30 2021 at 15:10):
If I drop the Condition here: https://simplifier.net/validate?fhirVersion=R4&scope=kbv.ita.eau@1.0.2 and run the validation I get the all clear.
Simone Heckmann (Sep 30 2021 at 15:12):
I f I run the complete Bundle, I get a couple of errors, but not the one you mentioned above..
Simone Heckmann (Sep 30 2021 at 15:16):
Maybe I can clear up some confusion: The ICD-Slice in the Composition is just a Code for "this is the section in this document where all the diagnoses go", whereas the ICD-Code in Condition is the actual diagnosis. Hence different CodeSystems.
Tu Quoc Nguyen (Sep 30 2021 at 15:18):
I am not sure if this is a problem with the terminology or something like that. But I post the bundle on my local Firely R4 Server which validates the bundle against the installed FHIR package "kbv.ita.eau-1.0.2.tgz"(https://simplifier.net/packages/kbv.ita.eau/1.0.2).
grafik.png
When I validate the bundle on simplifier.net there are no problems.
Last updated: Apr 12 2022 at 19:14 UTC