使用值读取JSON的层次结构

时间:2017-02-03 12:37:07

标签: json soapui hl7-fhir rhapsody

我想使用值来获取JSON的层次结构。例如:在值“医疗记录号”的JSON下面,所需信息是“resource-> identifier-> type-> coding-> display”。这是他们的任何内置功能。 寻找开口和结束大括号以定位节点的一种方法。还有其他任何有效的方式吗?

{
"resourceType": "Bundle",
"type": "transaction",
"entry": [
    {
        "fullUrl": "Patient/996-756-495-101",
        "resource": {
            "resourceType": "Patient",
            "id": "996-756-495-101",
            "identifier": [
                {
                    "type": {
                        "coding": [
                            {
                                "system": "http://hl7.org/fhir/v2/0203",
                                "code": "MR",
                                "display": "Medical record number"
                            }
                        ]
                    },
                    "system": "https://www.lumc.nl",
                    "value": "996-756-495-101"
                }
            ],
            "name": [
                {
                    "use": "usual",
                    "family": [
                        "Levin_4"
                    ],
                    "given": [
                        "Henry_4"
                    ]
                }
            ],
            "gender": "male",
            "birthDate": "1932-09-24",
            "maritalStatus": {
                "coding": [
                    {}
                ]
            },
            "managingOrganization": {
                "reference": "Organization/12"
            }
        },
        "request": {
            "method": "POST",
            "url": "Patient",
            "ifNoneExist": "identifier=https://www.lumc.nl|996-756-495-101"
        }
    },
    {
        "fullUrl": "FamilyMemberHistory/d42ebf70-5c89-11db-b0de-0800200c9a66",
        "resource": {
            "resourceType": "FamilyMemberHistory",
            "id": "d42ebf70-5c89-11db-b0de-0800200c9a66",
            "patient": {
                "reference": "Patient/996-756-495-101"
            },
            "status": "Partial",
            "relationship": {
                "coding": [
                    {
                        "system": "http://hl7.org/fhir/ValueSet/v3-FamilyMember",
                        "code": "FTH",
                        "display": "Father"
                    }
                ],
                "text": "Father"
            },
            "gender": "male",
            "bornDate": "1912",
            "deceasedBoolean": true
        },
        "request": {
            "method": "POST",
            "url": "FamilyMemberHistory"
        }
    },
    {
        "fullUrl": "FamilyMemberHistory/a13c6160-5c8b-11db-b0de-0800200c9a66",
        "resource": {
            "resourceType": "FamilyMemberHistory",
            "id": "a13c6160-5c8b-11db-b0de-0800200c9a66",
            "patient": {
                "reference": "Patient/996-756-495-101"
            },
            "status": "Partial",
            "relationship": {
                "coding": [
                    {
                        "system": "http://hl7.org/fhir/ValueSet/v3-FamilyMember",
                        "code": "MTH",
                        "display": "Mother"
                    }
                ],
                "text": "Mother"
            },
            "gender": "female",
            "bornDate": "1912",
            "deceasedBoolean": false
        },
        "request": {
            "method": "POST",
            "url": "FamilyMemberHistory"
        }
    }
]

}

0 个答案:

没有答案