Coming soon
Who can use this how-to
- You must have already ingested your patient records into TEFCA-CommonWell so that your patient IDs can be located.
- You must use your own patient ID and ID type to request documents. Don't use the TEFCA-CommonWell global ID.
- (Optional) Test sending these requests with our TEFCA-CommonWell sandbox. Learn about our TEFCA-CommonWell sandbox.Use curl for technical validation
- Be familiar with the following terms and concepts to send your queries to TEFCA-CommonWell:
Use ClinicalSummary.DocumentQuery to query TEFCA-CommonWell for a list of document IDs related to a specific patient. The response returns a list of document IDs related to the patient record.
- Using Postman or curl, send ClinicalSummary.DocumentQuery with the relevant metadata:
- Patient ID and ID type: Use the patient ID and ID type within your own organization.
- Organization OID: The organization OID should go in the Meta.FacilityCode field of your request.
- Option 1: For the FacilityCode, enter your own OID or set it to null. This results in a fan-out query which returns a list of document IDs from all external organizations where the patient is known in the clinical network.
- You never get documents from your own organization if you use your own OID, since TEFCA-CommonWell assumes you already have your own patient documents.
- Option 2: For the FacilityCode, enter the OID of a specific site you want to query. You can get a specific site's OID by searching for patient records and using the OID from the query results. This results a list of document IDs from one specific site.Getting documents of valueExample: Search for a document list from TEFCA-CommonWellbashAPI reference
- If the request is successful, you receive a synchronous ClinicalSummary.DocumentQueryResponse with a document list with an identifier, type, and date for each document so that you can identify the most relevant documents.Results from external organizationsExample: Successful response for a document list from TEFCA-CommonWelljson
Use ClinicalSummary.DocumentGet to query for any document from the list.
- If the returned document follows a C-CDA format, you receive it in a Redox-parsed view for any data that we can parse. Check out required C-CDA elements.
- If the returned document is a PDF or any other format, you receive it in raw XML, which can be useful if you have your own document renderer.
Different organization, different data
- Using Postman or curl, send ClinicalSummary.DocumentGet with the relevant metadata, like the document ID and type (from the response in the previous steps) and the organization OID (which goes in the Meta.FacilityCode field).Less is moreExample: Retrieve a document from TEFCA-CommonWellbash
- If the request is successful, you receive a synchronous ClinicalSummary.DocumentGetResponse with the relevant document of interest.What format to expectExample (abbreviated): Successful document retrieval from TEFCA-CommonWelljson
Onramp to TEFCA resources