General Information
The connectivity of this FHIR endpoint is as follows:
- HTTP Method
- GET, POST
- URL Template
- https://portal.viewmymed.com/fhir/Provenance?_id=token&
patient=reference - Supported OAuth 2.0 User Types
- Backend Systems, Clinicians or Administrative Users, Patients
- Operations Supported
- read
- Profiles Supported
-
- Us Core Provenance
Request Parameters
The following fields and datatypes are the parameters for the request string. All fields are optional, however if no settings are set, all values will be exported up to the maximum count of 100
| Name (type) | Description (bindings) |
|---|---|
| _id (token) |
A single or comma separated list of Provenance ids. It is a required field if the patient field is not given. |
| patient (reference) |
Who the Provenance is for. It is a required field if the _id field is not given. |
Returned Data Fields
The following fields and bindings are returned if valued
| Field (type) | Description (bindings) | Opt? |
|---|---|---|
| id (Id) |
Id |
|
| recorded (DateTime) |
The time this audit log event was recorded |
|
| target (Reference) |
Reference to all resources recorded at this exact session |
|
| agent (Reference) |
Reference to An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place. |
Default Patient Query
The following are live queries representative of a data request on our sandbox environment.
Headers
Accept: application/fhir+json Authorization: <OAuth2 Bearer Token>
Request
GET https://portal.viewmymed.com/fhir/Provenance?_id=1674710481
HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type: application/fhir+json
Date: Mon, 02 Feb 2026 13:37:18 GMT
Etag: W/"1"
{
"resourceType": "Bundle",
"id": "6980a88eaa1a86980a88eaa1a9",
"type": "searchset",
"link": [
{
"relation": "self",
"url": "https:\/\/portal.viewmymed.com\/api\/Provenance"
}
],
"entry": [
{
"fullUrl": "https:\/\/portal.viewmymed.com\/fhir\/Provenance\/1674710481",
"resource": {
"resourceType": "Provenance",
"id": "1674710481",
"recorded": "2023-01-26T05:21:22+00:00",
"target": [
{
"reference": "Condition\/9247e7ebf6ca6c20d9ba4b7ec686cd96"
},
{
"reference": "Condition\/bf2b994fb1b6e87e36bdaea2e8d9d384"
},
{
"reference": "AllergyIntolerance\/0e43ec556f1f60074f7b9f8830d52f30"
},
{
"reference": "AllergyIntolerance\/2f01e257195128dc0fff3285496613a4"
},
{
"reference": "AllergyIntolerance\/80662f3a8b03a09d110891114923b3ce"
},
{
"reference": "Medication\/ba4723d75d63a55f1ada30a64899175d"
},
{
"reference": "Procedure\/1383012b37675b1127dbbd707087649c"
},
{
"reference": "Procedure\/17a0255cf7e7fd84e58b621ba01faead"
},
{
"reference": "Procedure\/428b655c4be068ea986552f1e6a79e9b"
},
{
"reference": "Device\/4d84fd4cc6ad50d53f502f851b972508"
},
{
"reference": "CarePlan\/e44113d9aeeceeee3acdb295affbaec2"
},
{
"reference": "CarePlan\/e45c5b4dc2fed26e40dd66f2bc6454f1"
},
{
"reference": "CarePlan\/e97e5c3357e994568c05de95e33f514b"
},
{
"reference": "CarePlan\/2d666e0d57878383e051589c4104edff"
},
{
"reference": "CarePlan\/a81db9e1480382d020f699f76d6c5dd7"
},
{
"reference": "CarePlan\/5f7aa12e2d73f38ad403a2b36cbeaafe"
},
{
"reference": "CarePlan\/7858a5ad1dec126cfec2d838fbed2b57"
},
{
"reference": "CarePlan\/67f1f880f1843c84ebecf3ed75b4a0ca"
},
{
"reference": "CarePlan\/9a17a5c06ea83d23f47005ca1b5f93c6"
},
{
"reference": "CarePlan\/bdd4eb4e6bdffe6adfec500870ea2507"
},
{
"reference": "Goal\/c7a6c22bac863aea13d482f99a7dc422"
},
{
"reference": "CareTeam\/8f1595cff10deed9ba98e7dc1eba49fb"
},
{
"reference": "CareTeam\/bb73b739400ffcba6506e087b5b0792e"
}
],
"agent": [
{
"type": {
"coding": [
{
"system": "http:\/\/terminology.hl7.org\/CodeSystem\/provenance-participant-type",
"code": "author",
"display": "Author"
}
],
"text": "Author"
},
"who": {
"reference": "Practitioner\/61d8609f1b829a2125f5c1601b328d9a"
},
"onBehalfOf": {
"reference": "Organization\/069dca595f357b1011b5b74ba54b51c9"
}
},
{
"type": {
"coding": [
{
"system": "http:\/\/hl7.org\/fhir\/us\/core\/CodeSystem\/us-core-provenance-participant-type",
"code": "transmitter",
"display": "Transmitter"
}
],
"text": "Transmitter"
},
"who": {
"reference": "Practitioner\/61d8609f1b829a2125f5c1601b328d9a"
},
"onBehalfOf": {
"reference": "Organization\/069dca595f357b1011b5b74ba54b51c9"
}
}
]
}
}
]
}
Error Codes / Outcomes
All endpoints share the same error codes and common outcomes.