本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
使用 取得患者資料 Patient/$everything
Patient/$everything 此操作用於查詢 FHIR Patient 資源,以及與該 相關的任何其他資源Patient。此操作可用來讓病患存取其整個記錄,或讓提供者執行與病患相關的大量資料下載。HealthLake Patient/$everything 支援特定病患 id。
Patient/$everything 是 FHIR REST API 操作,可叫用,如以下範例所示。
注意
回應中的資源會依資源類型和資源 排序id。
回應一律會填入 Bundle.total。
Patient/$everything 參數
HealthLake 支援下列查詢參數
| 參數 | 詳細資訊 |
|---|---|
|
入門 |
取得指定開始日期之後的所有 |
|
end |
在指定的結束日期之前取得 |
|
since |
在指定日期之後更新 |
|
_type |
取得特定資源類型的 |
|
_count |
取得 |
範例 - 取得指定開始日期之後的所有病患資料
Patient/$everything 可以使用start篩選條件僅查詢特定日期之後的資料。
GET https://healthlake.region.amazonaws.com/datastore/datastoreId/r4/Patient/id/$everything?start=2024-03-15T00:00:00.000Z
範例 - 在指定的結束日期之前取得Patient所有資料
病患 $所有項目都可以使用end篩選條件,只在特定日期之前查詢資料。
GET https://healthlake.region.amazonaws.com/datastore/datastoreId/r4/Patient/id/$everything?end=2024-03-15T00:00:00.000Z
範例 - 在指定日期之後更新Patient所有資料
Patient/$everything 可以使用since篩選條件,僅查詢特定日期之後更新的資料。
GET https://healthlake.region.amazonaws.com/datastore/datastoreId/r4/Patient/id/$everything?since=2024-03-15T00:00:00.000Z
範例 - 取得特定資源類型的Patient資料
病患 $所有項目都可以使用_type篩選條件來指定要包含在回應中的特定資源類型。您可以在逗號分隔清單中指定多種資源類型。
GET https://healthlake.region.amazonaws.com/datastore/datastoreId/r4/Patient/id/$everything?_type=Observation,Condition
範例 - 取得Patient資料並指定頁面大小
病患 $所有項目都可以使用 _count來設定頁面大小。
GET https://healthlake.region.amazonaws.com/datastore/datastoreId/r4/Patient/id/$everything?_count=15
Patient/$everythingstart 和 end 屬性
HealthLake 支援 Patient/ $everythingstart和 end查詢參數的下列資源屬性。
| 資源 | 資源元素 |
|---|---|
| 帳戶 | Account.servicePeriod.start |
| AdverseEvent | AdverseEvent.date |
| AllergyIntolerance | AllergyIntolerance.recordedDate |
| 約定 | Appointment.start |
| AppointmentResponse | AppointmentResponse.start |
| AuditEvent | AuditEvent.period.start |
| 基本 | Basic.created |
| BodyStructure | NO_DATE |
| CarePlan | CarePlan.period.start |
| CareTeam | CareTeam.period.start |
| ChargeItem | ChargeItem.occurrenceDateTime, ChargeItem.occurrencePeriod.start, ChargeItem.occurrenceTiming.event |
| 取得 | Claim.billablePeriod.start |
| ClaimResponse | ClaimResponse.created |
| ClinicalImpression | ClinicalImpression.date |
| Communication | Communication.sent |
| CommunicationRequest | CommunicationRequest.occurrenceDateTime,CommCommunicationRequest.occurrencePeriod.start |
| 合成 | Composition.date |
| Condition | Condition.recordedDate |
| 同意 | consent.dateTime |
| 涵蓋範圍 | Coverage.period.start |
| CoverageEligibilityRequest | CoverageEligibilityRequest.created |
| CoverageEligibilityResponse | CoverageEligibilityResponse.created |
| DetectedIssue | DetectedIssue.identified |
| DeviceRequest | DeviceRequest.authoredOn |
| DeviceUseStatement | DeviceUseStatement.recordedOn |
| DiagnosticReport | DiagnosticReport.effective |
| DocumentManifest | DocumentManifest.created |
| DocumentReference | DocumentReference.context.period.start |
| 遇到 | Encounter.period.start |
| EnrollmentRequest | EnrollmentRequest.created |
| EpisodeOfCare | EpisodeOfCare.period.start |
| ExplanationOfBenefit | ExplanationOfBenefit.billablePeriod.start |
| FamilyMemberHistory | NO_DATE |
| 旗標 | Flag.period.start |
| 目標 | Goal.statusDate |
| 群組 | NO_DATE |
| ImagingStudy | ImagingStudy.started |
| 預防 | Immunization.recorded |
| ImmunizationEvaluation | ImmunizationEvaluation.date |
| ImmunizationRecommendation | ImmunizationRecommendation.date |
| 發票 | Invoice.date |
| 清單 | List.date |
| MeasureReport | MeasureReport.period.start |
| 媒體 | 媒體。發行 |
| MedicationAdministration | MedicationAdministration.effective |
| MedicationDispense | MedicationDispense.whenPrepared |
| MedicationRequest | MedicationRequest.authoredOn |
| MedicationStatement | MedicationStatement.dateAsserted |
| MolecularSequence | NO_DATE |
| NutritionOrder | NutritionOrder.dateTime |
| 觀察 | Observation.effective |
| 病患 | NO_DATE |
| 個人 | NO_DATE |
| 程序 | Procedure.performed |
| 證明 | Provenance.occurredPeriod.start,Provenance.occurredDateTime |
| QuestionnaireResponse | QuestionnaireResponse.authored |
| RelatedPerson | NO_DATE |
| RequestGroup | RequestGroup.authoredOn |
| ResearchSubject | ResearchSubject.period |
| RiskAssessment | RiskAssessment.occurrenceDateTime,RiskAssessment.occurrencePeriod.start |
| 排程 | Schedule.planningHorizon |
| ServiceRequest | ServiceRequest.authoredOn |
| 樣本 | samples.receivedTime |
| SupplyDelivery | SupplyDelivery.occurrenceDateTime, SupplyDelivery.occurrencePeriod.start, SupplyDelivery.occurrenceTiming.event |
| SupplyRequest | SupplyRequest.authoredOn |
| VisionPrescription | VisionPrescription.dateWritten |