Recursively read the 'section' elements of a Composition using $document

3 views
Skip to first unread message

SAJMIR

unread,
9:33 AM (5 hours ago) 9:33 AM
to HAPI FHIR
Hi all,
How can I recursively read the 'section' elements of a Composition using $document resource without modifying the HAPI JPA 8.10 source code?
In my case i have 'section' that have other 'section' inside but $document not read that second 'section' and all resources inside.
Thank you to all!

example:

{
    "resourceType": "Composition",
    ......
    "section": [
        {
            "code": {
                "coding": [
                    {
                        "system": "http://loinc.org",
                        "code": "26436-6",
                        "display": "LABORATORY STUDIES"
                    },
                    {
                        "system": "XXXXXXX",
                        "code": "ORDERNOTE"
                    }
                ]
            },
            "text": {
                "status": "generated",
                "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><span id=\"orderNote\">xxxxxxxxxxxxxx</span></div>"
            },
            "entry": [
                {
                    "reference": "DiagnosticReport/7397c632-570f-4395-9b9a-99da3c82d1b9"
                }
            ]
        },
        {
            "code": {
                "coding": [
                    {
                        "system": "http://loinc.org",
                        "code": "18725-2",
                        "display": "MICROBIOLOGY STUDIES"
                    }
                ]
            },
            "section": [
                {
                    "title": "yyyyyyyy",
                    "code": {
                        "coding": [
                            {
                                "system": "qqqqqqqqqq",
                                "code": "63181",
                                "display": "sssssssssssss"
                            }
                        ]
                    },
                    "text": {
                        "status": "generated",
                        "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">qqqqqqqqqqqqqqqq</div>"
                    },
                    "entry": [
                        {
                            "reference": "DiagnosticReport/46c52eb9-0056-4e76-92e1-23576ffd7e12"
                        }
                    ]
                },
                {
                    "title": "llllllllllll",
                    "code": {
                        "coding": [
                            {
                                "system": "ppppppppppppppp",
                                "code": "63183",
                                "display": "iiiiiiiiiiiiiiii"
                            }
                        ]
                    },
                    "text": {
                        "status": "generated",
                        "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">yyyyyyyyyyyyyyyyyyy</div>"
                    },
                    "entry": [
                        {
                            "reference": "DiagnosticReport/1d5b97f1-403b-43c6-b268-ea31ad47cec9"
                        }
                    ]
                }
            ]
        }
    ]
}


James Agnew

unread,
9:35 AM (5 hours ago) 9:35 AM
to SAJMIR, HAPI FHIR
This sounds like it's probably a bug/limitation with our $document operation implementation. 

Please feel free to file a ticket on the bug tracker (ideally with a complete test case), or of course even a PR which addresses the issue.

Cheers,
James

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/hapi-fhir/2293dd96-f02f-4d72-95f2-eba274fc5c69n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages