Who can use this how-to
To request documents from TEFCA-CommonWell, you use a two-step workflow:
- Request a list of relevant document IDs.
- Retrieve a specific document from the list. You cannot retrieve a document without first knowing its ID from step 1.
- You must use the patient ID and ID type from your own system (i.e., the MR or internal patient ID) to request documents. Don't use the PIAA OID or other TEFCA-CommonWell assigned identifiers, since those are used for matching only, not for document retrieval.
- (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:
Send ClinicalSummary.DocumentQuery to query TEFCA-CommonWell for a list of document IDs related to a specific patient.
- The Meta.Destination.ID changes based on environment type:
- Development destination ID: cf1dca0e-98de-432b-8c9a-dd039816df0e
- Production destination ID: 79981c00-b9c4-40a9-9844-01980e6e524e
- For production queries, set the Test value to false.
- For Patient.Identifiers.ID and Patient.Identifiers.IDType, use the patient values within your own organization, or use the ones in the response from a patient search.
- Enter one of the following options for the Meta.FacilityCode depending on the result you want (we use Redox for the example below):
- Option 1: Broach search. To return a list of document IDs from all external organizations where the patient is known, either enter your own OID or set it to null. This initiates a fan-out query to the clinical network.When using your own OID
- Option 2: Narrow search. To return a list of document IDs from one site, enter the specific OID. This comes in the response from a patient search.
- Review the Clinical Summary data model schema for full requirements.
Which documents to request
Example: Search for a document list from TEFCA-CommonWell
bash
If successful, you receive ClinicalSummary.DocumentQueryResponse with a list of document IDs related to the patient record. The included document metadata helps you identify the most relevant documents.
Results from external organizations
Example: Successful response for a document list from TEFCA-CommonWell
json
Send ClinicalSummary.DocumentGet to query for any document from the list. Enter the relevant metadata:
- The Meta.Destination.ID changes based on environment type:
- Development destination ID: cf1dca0e-98de-432b-8c9a-dd039816df0e
- Production destination ID: 79981c00-b9c4-40a9-9844-01980e6e524e
- For production queries, set the Test value to false.
- For the Meta.FacilityCode, use the value from the previous step’s response. We use Redox in the example below.
- For Document.ID, enter the value from the previous step’s response.
Less is more
Example: Retrieve a document from TEFCA-CommonWell
bash
If successful, you receive ClinicalSummary.DocumentGetResponse with the relevant document of interest.
What format to expect
Example (abbreviated): Successful document retrieval from TEFCA-CommonWell
json
Onramp to TEFCA resources