ประสบการณ์การใช้งานเบราว์เซอร์ที่แสดงต่อผู้ใช้สำหรับข้อมูลทางการแพทย์ที่จัดเก็บไว้ใน Health Connect เป็นประเภทข้อมูลทางการแพทย์ใหม่ รวมถึงสิทธิ์แบบละเอียดสำหรับการอนุญาตให้อ่านดาวน์สตรีม
API สําหรับแอปพลิเคชันที่อ่านข้อมูลทางการแพทย์ตามสิทธิ์ที่ผู้ใช้ให้ไว้
รูปที่ 1 วิธีที่ระบบใช้บันทึกข้อมูลทางการแพทย์กับ Health Connect
ข้อจำกัด
เนื่องจาก API เหล่านี้ยังอยู่ระหว่างการพัฒนา จึงยังมีข้อจำกัดบางอย่างและคอมโพเนนต์บางรายการยังไม่พร้อมใช้งานอย่างเต็มรูปแบบ
Medical Records API มีการทำเครื่องหมายกำกับด้วย ExperimentalPersonalHealthRecordApi ซึ่งบ่งบอกว่า API เหล่านี้ยังอยู่ระหว่างการพัฒนาและอาจมีการเปลี่ยนแปลง
นโยบายของ Play สําหรับการเข้าถึงเวชระเบียนยังอยู่ระหว่างการพัฒนา และแอปอาจต้องเป็นไปตามข้อกําหนดเพิ่มเติมก่อนจึงจะเผยแพร่ใน Play Store ได้
ฟีเจอร์บางอย่าง เช่น API ตามบันทึกการเปลี่ยนแปลง ยังไม่ได้รับการพัฒนาสำหรับ Medical Records API
เริ่มต้นใช้งาน
เนื่องจากบันทึกทางการแพทย์เป็นชุดระเบียนประเภทใหม่ใน Health Connect กระบวนการเริ่มต้นใช้งาน Health Connect เดียวกันจึงใช้กับบันทึกทางการแพทย์ได้
ดูข้อมูลเพิ่มเติมได้ที่เริ่มต้นใช้งาน Health Connect
หากคุณได้ทดลองใช้ Medical Records Framework API ที่พร้อมใช้งานในช่วงแรก เราขอแนะนําอย่างยิ่งให้คุณเปลี่ยนไปใช้ Jetpack เพื่อประสบการณ์การใช้งานที่ดีขึ้นสำหรับนักพัฒนาแอปด้วยเหตุผลต่อไปนี้
Medical Records API พร้อมให้บริการผ่าน Health Connect เวอร์ชัน 1.1.0-beta02 ใน Jetpack การอัปเดตทรัพยากร Dependency ของ Jetpack เป็นเวอร์ชันนี้กำหนดให้แอปต้องคอมไพล์กับ Android 16 SDK
การขอสิทธิ์อ่านหรือเขียนบันทึกทางการแพทย์จะทำงานคล้ายกับหน้าจอสิทธิ์ของ Health Connect ที่มีอยู่ แต่ระบบจะแสดงหน้าจอบันทึกสุขภาพแยกต่างหาก
การเรียกดูข้อมูล
นอกจากนี้ Health Connect ยังแสดงข้อมูลเป็นภาพพื้นฐานและการเรียกดูข้อมูลบันทึกทางการแพทย์ที่จัดเก็บไว้ ซึ่งคล้ายกับประเภทข้อมูล Health Connect ที่มีอยู่
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-26 UTC"],[],[],null,["# Medical Records\n\nThe Health Connect platform provides a [range of data types](/health-and-fitness/guides/health-connect/plan/data-types),\nmostly covering wellness and fitness use cases, enabling apps in the Android\necosystem to share data without the need for high-cost one-to-one\nAPI integrations.\n\nMedical Records extends this capability to include basic medical\ndata in [Fast Healthcare Interoperability Resources (FHIR®)](https://www.hl7.org/fhir/overview.html)\nformat. FHIR is an open-source global specification describing schema and\nsemantics for medical data published by HL7 (Health Level Seven International).\n\nMedical Records on Health Connect features:\n\n- An API for applications writing medical data.\n- A user-facing browser experience for medical data stored in Health Connect as new medical data types, along with fine-grained permissions for allowing downstream reads.\n- An API for applications reading medical data based on user-granted permissions.\n\n**Figure 1.** How Medical Records work with Health Connect.\n\nLimitations\n-----------\n\nAs these APIs are still under development, there are still some limitations and\nsome components aren't fully available.\n\nThe Medical Records APIs are marked with an annotation of\n`ExperimentalPersonalHealthRecordApi`, which indicates that these APIs are still\nunder development and subject to change.\n\nThere are still some limitations and some components aren't fully available:\n\n- The Play Policy for Medical Records access is still being developed, and apps may need to meet additional requirements before they can be released on the Play Store.\n- Some features, such as changelogs-based APIs, have not been developed for Medical Records APIs yet.\n\nGet Started\n-----------\n\nBecause Medical Records is a set of new record types in Health Connect, the\nsame process for getting started with Health Connect applies to Medical Records.\nSee [Get started with Health Connect](/health-and-fitness/guides/health-connect/develop/get-started) for more information.\n\nIf you have been experimenting with the Medical Records Framework APIs that\nwere initially available, we strongly recommend you transition to Jetpack for\nan improved developer experience for the following reasons:\n\n- All guides and sample code are written for Jetpack\n- Ecosystem tools use the Jetpack APIs\n- The API surface is Kotlin native\n- Jetpack has improved compatibility support (such as the [Feature\n Availability API](/health-and-fitness/guides/health-connect/develop/feature-availability))\n\nMedical Records APIs are made available through Health Connect version\n[1.1.0-beta02](/jetpack/androidx/releases/health-connect#1.1.0-beta02) in Jetpack. Updating your Jetpack dependency to\nthis version requires that apps be compiled against the [Android 16\nSDK](/about/versions/16/setup-sdk).\n\nOnce you're set up and ready to write and read Medical Records data in your app,\nsee [Write medical data](/health-and-fitness/guides/medical-records/write-data) and [Read medical data](/health-and-fitness/guides/medical-records/read-data).\n\nUser experience\n---------------\n\nGeneral information about the user experience is provided in this section.\n\n### Permissions\n\nRequesting read or write medical record permissions behaves similarly to the\nexisting Health Connect permissions screens, but a separate\nhealth records screen is shown:\n\n### Data browsing\n\nHealth Connect also provides basic visualization and browsing of Medical Records\ndata stored, similar to existing Health Connect data types."]]