0

我有一个Claim的有效载荷。
我想使用添加一个附加字段LOB业务线extension,并将其 POST 到 FHIR 服务器,然后使用该字段搜索资源,例如:
GET: http://fhir_server/Claim?lob=value
在有效负载中,我添加了扩展块:

{
    "resourceType": "Claim",
    "status": "active",
    "extension" : [{
        "url" : "<i entered some random url>",
        "valueString" : "MAPD"
    }],
    "identifier": [{
                    "value": "TEST"
                }],
    "type": {
        "coding": [{
            "system": "http://terminology.hl7.org/CodeSystem/claim-type",
            "code": "institutional"
        }]
    },
    "use": "claim",
    "patient": {
        "reference": "f8d8477c-1ef4-4878-abed-51e514bfd91f",
        "display": "John_Smith"
    },
    "billablePeriod": {
        "start": "1957-04-12T21:08:35+05:30",
        "end": "1957-04-12T21:23:35+05:30"
    },
    "created": "1957-04-12T21:23:35+05:30",
    "provider": {
        "reference": "urn:uuid:Organization",
        "display": "PCP79032"
    },
    "priority": {
        "coding": [{
            "system": "http://terminology.hl7.org/CodeSystem/processpriority",
            "code": "normal"
        }]
    },
    "facility": {
        "reference": "Location",
        "display": "PCP79032"
    },
    "diagnosis": [{
        "sequence": 1,
        "diagnosisReference": {
            "reference": "0316a0c4-0e46-e3fa-a7bf-9e4f3b9c9e92"
        }
    }, {
        "sequence": 2,
        "diagnosisReference": {
            "reference": "932432b0-ac67-0f7a-1382-26c48050c62f"
        }
    }],
    "insurance": [{
        "sequence": 1,
        "focal": true,
        "coverage": {
            "display": "Blue Cross Blue Shield"
        }
    }],
    "item": [{
        "sequence": 1,
        "productOrService": {
            "coding": [{
                "system": "http://snomed.info/sct",
                "code": "162673000",
                "display": "General examination of patient (procedure)"
            }],
            "text": "General examination of patient (procedure)"
        },
        "encounter": [{
            "reference": "67062d00-2531-3ebd-8558-1de2fd3e5aab"
        }]
    }, {
        "sequence": 2,
        "diagnosisSequence": [1],
        "productOrService": {
            "coding": [{
                "system": "http://snomed.info/sct",
                "code": "713458007",
                "display": "Lack of access to transportation (finding)"
            }],
            "text": "Lack of access to transportation (finding)"
        }
    }, {
        "sequence": 3,
        "diagnosisSequence": [2],
        "productOrService": {
            "coding": [{
                "system": "http://snomed.info/sct",
                "code": "73595000",
                "display": "Stress (finding)"
            }],
            "text": "Stress (finding)"
        }
    }],
    "total": {
        "value": 786.3299999999999,
        "currency": "USD"
    }
}

并创建了一个SearchParameter使用 POST:

{
    "resourceType" : "SearchParameter",
    "id": "21761828-b929-416a-8813-d3646cf288f4",
    "name": "lob",
    "status": "active",
    "url" : "https://fhir_server/StructureDefinition/f971fc4998167948838f8a8831ea914c",
    "description": "Returns a Claim with extension.valueString matching the specified one in request.",
    "code" : "lob",
    "base" : [ "Claim" ],
    "type" : "string",
    "expression": "Claim.extension.where(url ='https://fhir_server/StructureDefinition/f971fc4998167948838f8a8831ea914c').value.string"
}

但是在获取结果时(GET: https://fhirserver/Claim?lob=MAPD)​​ ,我得到的是完整的数据集而不是过滤后的结果。
我也在$reindex上做了一个/Claim/<resource_id>/$reindex,但它没有列出字段lob
我错过了什么吗?

4

1 回答 1

0

需要将服务器配置为支持新的搜索参数 - 您不能通过任意元素进行搜索,只能通过服务器支持的特定 SearchParameters 进行搜索。对于扩展和核心元素的搜索都是如此。您必须与服务器的所有者合作以支持您所需的搜索功能。您是否尝试在http://chat.fhir.org上发布以了解是否存在非扩展机制来代表索赔中的“业务线”?

于 2021-08-25T13:46:50.493 回答