在FHIR标准中,符合资源的URL通常应该是固定的。如果不约束URL,可能会出现以下问题:
为了避免这些问题,需要将符合资源中的URL约束为固定值,可以在资源定义的时候进行配置,示例如下:
{
"resourceType": "Conformance",
"rest": [{
"resource": [{
"type": "Patient",
"interaction": [{
"code": "read"
}]
"searchParam": [{
"name": "id",
"type": "string",
"definition": "http://hl7.org/fhir/SearchParameter/Patient-identifier",
"documentation": "The patient identifier for the patient to retrieve"
}]
}]
}],
"url": "http://example.com/fhir",
"name": "My Example Server",
"description": "This is an example FHIR server",
"status": "draft",
"version": "1.0.0"
}
在上述示例中,resource对象中的type和searchParam定义了一个Patient资源,并指定了其固定的