2018年12月15日 星期六

HL7 FHIR Server初體驗 - 查詢篇 - 戰技之3

戰技之1戰技之2講的是共同性查詢參數架構。但,實際上的重點卻是在各Resource能支援哪些查詢參數。
趕快再來戰一篇。
==========
每個Resource所支援的查詢參數不盡相同,但是配合共同性查詢參數之應用是一樣的。本篇就以資源對象Patient為主。先來看看,除了有前傳所提到的查詢參數外,Patient資源還有額外的查詢參數。抱歉,偷懶直接複製部分官方文件,完整內容還是要參考官方文件。看了之後....。

Name
Type
Description
active
token
Whether the patient record is active
address
string
A server defined search that may match any of the string fields in the Address, including line, city, state, country, postalCode, and/or text
address-city
string
A city specified in an address
address-country
string
A country specified in an address
address-postalcode
string
A postalCode specified in an address
address-state
string
A state specified in an address
address-use
token
A use code specified in an address
animal-breed
token
The breed for animal patients
animal-species
token
The species for animal patients
birthdate
date
The patient's date of birth
death-date
date
The date of death has been provided and satisfies this search value
deceased
token
This patient has been marked as deceased, or as a death date entered
email
token
A value in an email contact
family
string
A portion of the family name of the patient
gender
token
Gender of the patient
general-practitioner
reference
Patient's nominated general practitioner, not the organization that manages the record



given
string
A portion of the given name of the patient
identifier
token
A patient identifier
language
token
Language code (irrespective of use value)
link
reference
All patients linked to the given patient



name
string
A server defined a search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
organization
reference
The organization at which this person is a patient



phone
token
A value in a phone contact
phonetic
string
A portion of either family or given name using some kind of phonetic matching algorithm
telecom
token
The value in any kind of telecom details of the patient

其實,真正問題在於你的實作情境,更精確說法,要看你的Client端程式,要提供哪些查詢條件。情境就是要看Name這個欄位。如何組出正確的查詢語法,就是得看Type這個欄位。
至於範例,都在前面出現過了。

沒有留言:

張貼留言