This wiki has undergone a migration to Confluence found Here
<meta name="googlebot" content="noindex">

Difference between revisions of "201701 Medication Track"

From HL7Wiki
Jump to navigation Jump to search
 
(7 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
[[Category:201701_FHIR_Connectathon_Track_Proposals|January 2017 Proposals]]
 
[[Category:201701_FHIR_Connectathon_Track_Proposals|January 2017 Proposals]]
 
<!--__NOTOC__-->
 
<!--__NOTOC__-->
 +
== '''[http://wiki.hl7.org/images/2/27/20170115_Connectathon_Presentation_USCore_Meds.pptx Report out presentation]''' ==
 
=Medication Track=
 
=Medication Track=
  
Line 174: Line 175:
  
  
[https://github.com/Healthedata1/FHIR-ONC-Meds/issues?q=label%3AAccess%20to%20medication%20administration Issues and Questions] (GitHub issues link)
+
[https://github.com/Healthedata1/FHIR-ONC-Meds/issues?q=is%3Aopen+is%3Aissue+label%3A%22access+to+medications%22+label%3AConnectathon Issues and Questions] (GitHub issues link)
  
  
Line 216: Line 217:
 
====Quick Start:====
 
====Quick Start:====
  
Using a search on MedicationStatement with the following parameters:
+
Search on the Medication resources with the following parameters:
  
 
* patient
 
* patient
 
* status
 
* status
 
* category
 
* category
 +
* encounter
 
<!--
 
<!--
* encounter for extension Reference Encounter )[see issue 5]
 
 
**for historical inpatient medications - (see example below)
 
**for historical inpatient medications - (see example below)
 
**if absent return the most recent hospitalization
 
**if absent return the most recent hospitalization
Line 231: Line 232:
 
-----
 
-----
  
1. Get all medication for patient (prescribed or consumed) = historical (See Bonus 2. below for a discussion of cross resource searches using common search parameters.)
+
'''1. Get all medication for patient (prescribed or consumed) = historical '''
  GET [base]?_type=MedicationStatement,MedicationRequest?status=active,completed,stopped,on-hold&patient=[id]&_format=[mime-type]
+
 
 +
* Currently: Searching just the MedicationStatement Resource
 +
GET [base]/MedicationStatement?status=active,completed,stopped,on-hold&subject=[id]
 +
 
 +
* For Consideration:  Searching both MedicationStatement and MedicationRequest Resources
 +
(See Bonus 2. below for a discussion of cross resource searches using common search parameters.)
 +
  GET [base]?_type=MedicationStatement,MedicationRequest?status=active,completed,stopped,on-hold&patient=[id]
 +
 
 +
'''2. Get a current snapshot of active medications'''
 +
 
 +
* Currently: Searching just the MedicationStatement Resource
 +
GET [base]/MedicationStatement?status=active&subject=[id]
 +
 
 +
* For Consideration:  Searching both MedicationStatement and MedicationRequest Resources
 +
(See Bonus 2. below for a discussion of cross resource searches using common search parameters.)
 +
GET [base]?_type=MedicationStatement,MedicationRequest?status=active&subject=[id]
 +
 
 +
'''3. Get medications for encounter'''
  
2. Get a current snapshot of active medications (See Bonus 2. below for a discussion of cross resource searches using common search parameters.)
+
* Currently: Searching just the MedicationStatement Resource
  GET [base]?_type=MedicationStatement,MedicationRequest?status=active&patient=[id]&_format=[mime-type]
+
  GET [base]/MedicationStatement?status=active&subject=[id]&encounter=[id]
  
3. Get medications for encounter (See Bonus 2. below for a discussion of cross resource searches using common search parameters.)
+
* For Consideration:  Searching both MedicationStatement and MedicationRequest Resources
  GET [base]?_type=MedicationStatement,MedicationRequest?status=active&patient=[id]&encounter=[id]&_format=[mime-type]
+
(See Bonus 2. below for a discussion of cross resource searches using common search parameters.)
 +
  GET [base]?_type=MedicationStatement,MedicationRequest?status=active&subject=[id]&encounter=[id]
  
4. Get only MAR orders
+
'''4. Get only MAR orders - Searching only the MedicationRequest Resource'''
  GET [base]/MedicationRequest?status=active&patient=[id]
+
  GET [base]/MedicationRequest?status=active&subject=[id]
  
  
Line 294: Line 313:
 
----
 
----
  
GET [base]?_type=MedicationStatement,MedicationRequest?status=active,completed,stopped,on-hold&patient=[id]&_format=[mime-type]
+
GET [base]?_type=MedicationStatement,MedicationRequest?status=active,completed,stopped,on-hold&subject=[id]&_format=[mime-type]
  
  

Latest revision as of 18:25, 15 January 2017

Return to January 2017 Proposals

Report out presentation

Medication Track

Coordinated with other related Connectathon tracks

  • US-Core IG


Submitting WG/Project/Implementer Group

Pharmacy FHIR Profiles Project

Pharmacy Work Group

Justification

This project is intended to support the Pharmacy WG in moving the Pharmacy FHIR resources to a higher maturity level based on feedback from the Argonaut Project, HL7 work groups and industry implementers. The key objective for this project is to use implement and test the following FHIR Medication related resources and the corresponding US-Core medication Profiles:

In addition to implementing the existing US-Core medication Profiles this tract will examine and support the development of new proposed US-Realm profiles for MedicationAdministration and MedicationDispense.

We will also introduce the scenario for search across all Medication Resources using common search parameter as it is described in the Core Specification

Proposed Track Lead

See Connectathon_Track_Lead_Responsibilities

Melva Peters

Brett Marquard

Eric Haas

Expected participants

Please sign up!

If you're working on a server, please complete the "servers" tab of the Signup Spreadsheet **This time around you'll need to update the `status` flag to indicate whether you've begun work (or completed work), so clients will know when to start testing.** You'll also share details about how a developer can obtain OAuth client credentials (`client_id` for public apps, or a `client_id` and `client_secret` for confidential apps) as well as user login credentials. You might consider simply sharing a set of fixed credentials in this spreadsheet, or else directing users to a web page where they can complete self-service registration. If absolutely necessary, you can ask developers to e-mail you directly.

If you're working on a client, please complete the "clients" tab of the Spreadsheet. You'll also need to update the `status` flag to indicate whether you've begun work (or completed work).

Roles

(reproduced from Argonaut Project implementation-program Resprint)

Server/EHR

If you're working on a server, please complete the "servers" tab of the Sprints Spreadsheet (see above). You'll need to update the status flag to indicate whether you've begun work (or completed work), so clients will know when to start testing. You'll also share details about how a developer can obtain OAuth client credentials (client_id for public apps, or a client_id and client_secret for confidential apps) as well as **user login credentials. The preferred approach is to direct users to a web page where they can complete self-service registration. (If absolutely necessary, you can ask developers to e-mail you directly.) Work on your OAuth implementation

The expectation is that servers will follow Argonaut’s best-practice approach by implementing the OAuth2-based SMART on FHIR authorization specification. To make this more approachable for new implementers, you can think about handling security in four parts:

  1. open server. Before you get OAuth working, and even once you have an OAuth-secured server, it can be helpful to host sample data at a totally unprotected https endpoint. This facilitates testing, debugging, and exploration
  2. Standalone launch. Following SMART’s “standalone launch” flow means that the user (patient, or clinician) can begin by launching an app, and from there can engage in a “connect to my EHR” workflow. This approach is suitable for MU3 patient API access.
  3. EHR launch. Following SMART’s “EHR launch” flow means that the user (patient, or clinician) can begin from the EHR or potal, and launch an app from there, ensuring that the app learns the context about the surrounding EHR or portal environment. This approach is suitable for embedding apps in an EHR or portal.
  4. Single Sign-on. Using the OAuth2-based OpenID Connect framework for single sign-on, your authorization server can “vouch for” a user’s identity. This helps ensure that users don’t need to create a new account, with new credentials, for every app they use. This approach to SSO can be used with either of SMART’s launch flows.

Client

If you're working on a client, please complete the "clients" tab of the Sprints Spreadsheet (see above) . You'll also need to update the status flag to indicate whether you've begun work (or completed work).

Scenarios

Dedicated Zulip chat stream for this Track.

Use cases:

  1. Patient and Provider access to a patient’s active and historical medication list
  2. Patient and Provider updates to a patient’s active and historical medication list
  3. Create a new outpatient Prescription

Return to January 2017 Proposals

Medication Track

Coordinated with other related Connectathon tracks

  • US-Core IG


Submitting WG/Project/Implementer Group

Pharmacy FHIR Profiles Project

Pharmacy Work Group

Justification

This project is intended to support the Pharmacy WG in moving the Pharmacy FHIR resources to a higher maturity level based on feedback from the Argonaut Project, HL7 work groups and industry implementers. The key objective for this project is to use implement and test the following FHIR Medication related resources and the corresponding US-Core medication Profiles:

In addition to implementing the existing US-Core medication Profiles this tract will examine and support the development of new proposed US-Realm profiles for MedicationAdministration and MedicationDispense.

Proposed Track Lead

See Connectathon_Track_Lead_Responsibilities

Melva Peters

Brett Marquard

Eric Haas

Expected participants

Please sign up!

If you're working on a server, please complete the "servers" tab of the Signup Spreadsheet **This time around you'll need to update the `status` flag to indicate whether you've begun work (or completed work), so clients will know when to start testing.** You'll also share details about how a developer can obtain OAuth client credentials (`client_id` for public apps, or a `client_id` and `client_secret` for confidential apps) as well as user login credentials. You might consider simply sharing a set of fixed credentials in this spreadsheet, or else directing users to a web page where they can complete self-service registration. If absolutely necessary, you can ask developers to e-mail you directly.

If you're working on a client, please complete the "clients" tab of the Spreadsheet. You'll also need to update the `status` flag to indicate whether you've begun work (or completed work).

Roles

(reproduced from Argonaut Project implementation-program ReConnectathon)

Server/EHR

If you're working on a server, please complete the "servers" tab of the Connectathons Spreadsheet (see above). You'll need to update the status flag to indicate whether you've begun work (or completed work), so clients will know when to start testing. You'll also share details about how a developer can obtain OAuth client credentials (client_id for public apps, or a client_id and client_secret for confidential apps) as well as **user login credentials. The preferred approach is to direct users to a web page where they can complete self-service registration. (If absolutely necessary, you can ask developers to e-mail you directly.) Work on your OAuth implementation

The expectation is that servers will follow Argonaut’s best-practice approach by implementing the OAuth2-based SMART on FHIR authorization specification. To make this more approachable for new implementers, you can think about handling security in four parts:

  1. open server. Before you get OAuth working, and even once you have an OAuth-secured server, it can be helpful to host sample data at a totally unprotected https endpoint. This facilitates testing, debugging, and exploration
  2. Standalone launch. Following SMART’s “standalone launch” flow means that the user (patient, or clinician) can begin by launching an app, and from there can engage in a “connect to my EHR” workflow. This approach is suitable for MU3 patient API access.
  3. EHR launch. Following SMART’s “EHR launch” flow means that the user (patient, or clinician) can begin from the EHR or potal, and launch an app from there, ensuring that the app learns the context about the surrounding EHR or portal environment. This approach is suitable for embedding apps in an EHR or portal.
  4. Single Sign-on. Using the OAuth2-based OpenID Connect framework for single sign-on, your authorization server can “vouch for” a user’s identity. This helps ensure that users don’t need to create a new account, with new credentials, for every app they use. This approach to SSO can be used with either of SMART’s launch flows.

Client

If you're working on a client, please complete the "clients" tab of the Connectathons Spreadsheet (see above) . You'll also need to update the status flag to indicate whether you've begun work (or completed work).

Scenarios

Dedicated Zulip chat stream for this Track.

Use cases:

  1. Patient and Provider access to a patient’s active medication list
  2. Patient and Provider updates to a patient’s active medication list
  3. Create a new outpatient Prescription

1. Patient and Provider access to a patient’s active and historical medication list

Issues and Questions (GitHub issues link)


Action: (Patient consumer or Provider) requests active medications or historical medication list.

Preconditions:

  1. Patient does exist on the server previously with medications.
  2. Server conforms to the US-Core CapabilityStatement-daf-query-responder for Medication, MedicationStatement, MedicationRequest, and Patient profiles
  3. Client conforms to the US-Core MedicationStatement, MedicationRequest, and Patient profiles
  4. Server and Client mandatory support of the category element for MedicationStatement and MedicationRequest

Definitions

  1. Active Medication List – A list of medications that a given patient is currently taking.
  2. MAR linked to workflow and is medication actually given during hospitalization.

Use Cases

  1. Get all medication for patient (prescribed or consumed) = historical
  2. Get a current snapshot of active medications
  3. for medications for encounter: ( encounter will be added to MedicationStatement)
    • filter by encounter
  4. Get only MAR orders
    • Only Uses MedicationRequest Resource ( no MedicationStatement )

Using a search on MedicationStatement with the following parameters:

  • patient
  • status
  • category

Quick Start:

Search on the Medication resources with the following parameters:

  • patient
  • status
  • category
  • encounter

Issues: How many # of Queries  for 1-3 ?

1. Get all medication for patient (prescribed or consumed) = historical

  • Currently: Searching just the MedicationStatement Resource
GET [base]/MedicationStatement?status=active,completed,stopped,on-hold&subject=[id]
  • For Consideration: Searching both MedicationStatement and MedicationRequest Resources

(See Bonus 2. below for a discussion of cross resource searches using common search parameters.)

GET [base]?_type=MedicationStatement,MedicationRequest?status=active,completed,stopped,on-hold&patient=[id]

2. Get a current snapshot of active medications

  • Currently: Searching just the MedicationStatement Resource
GET [base]/MedicationStatement?status=active&subject=[id]
  • For Consideration: Searching both MedicationStatement and MedicationRequest Resources

(See Bonus 2. below for a discussion of cross resource searches using common search parameters.)

GET [base]?_type=MedicationStatement,MedicationRequest?status=active&subject=[id]

3. Get medications for encounter

  • Currently: Searching just the MedicationStatement Resource
GET [base]/MedicationStatement?status=active&subject=[id]&encounter=[id]
  • For Consideration: Searching both MedicationStatement and MedicationRequest Resources

(See Bonus 2. below for a discussion of cross resource searches using common search parameters.)

GET [base]?_type=MedicationStatement,MedicationRequest?status=active&subject=[id]&encounter=[id]

4. Get only MAR orders - Searching only the MedicationRequest Resource

GET [base]/MedicationRequest?status=active&subject=[id]


Examples: ( todo - complete )

http://fhir3.healthintersections.com.au/open/MedicationStatement/?pat=1&status=active

http://fhir3.healthintersections.com.au/open/MedicationStatement/?pat=1&status=active,completed,stopped,on-hold


Success Criteria:Server returns a Bundle containing entries for each of the use cases above

Bonus point:

1. Search for a patient medication across all of the medication resources.

In this scenario, the medication list includes MedicationRequest, MedicationAdministration and MedicationDispense resources in addition to MedicationStatement and multiples queries or a _revinclude on Patient would be used See Bonus 2. below for a discussion of cross resource searches using common search parameters.

  1. The medication list includes MedicationRequest, MedicationAdministration and MedicationDispense resources
  2. Search on these resources with the following parameters:
    • patient
    • status
    • category note: is not a common search paramenter

With Server Conforming to Pharmacy FHIR Maturity Project MedicationAdministration Profile and MedicationDispense Profile


2. Search for a patient medication across the MedicationStatement and MedicationRequest Resources

In this scenario, MedicationRequest, MedicationStatement are being used and performing a search for a patient patient medication using the cross resource queries.

  1. The medication list includes MedicationRequest, MedicationStatment resources
  2. Search on these resources with the following common parameters:
    • patient
    • status
    • category

Questions for discussion:
1  Should there be a Category element and parameter for MedicationAdministration and MedicationDispense as well?
   This would allow a single query across all medications resources for a medication list.

GET [base]?_type=MedicationStatement,MedicationRequest?status=active,completed,stopped,on-hold&subject=[id]&_format=[mime-type]


3. retrieve a historical medication list for a prior hospitalization (for example 3 hospitalizations ago)

2. Patient or Provider adding new medication to patient’s (“active”) medication

Issues and Questions (GitHub issues link)


Action: (Patient consumer or Provider) updates active medications list. Specifically updates (add, revise, deprecate) to MedicationStatement.

Using add

PUT /MedicationStatement/[id] or POST /MedicationStatement

revise

PUT /MedicationStatement/[id]


Examples:

1. adding a new active medication to the patient records

POST http://fhir3.healthintersections.com.au/open/MedicationStatement

Request Body

<?xml version="1.0" encoding="UTF-8"?>
<MedicationStatement xmlns="http://hl7.org/fhir">
 <status value="active"/>  
       <MedicationCodeableConcept>
         <coding>
           <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>
           
           <display value="Acetaminophen 500 MG"/>
         </coding>
       </MedicationCodeableConcept>
 <patient>
   <reference value="Patient/pat1"/>
   <display value="Donald Duck"/> 
 </patient>
 <effectiveDateTime value="2015-01-23"/>
 <note>
   <text value="Patient indicates they miss the occasional dose"/>
 </note>
 <category value="patientspecified">
 </category>
 <dosage>
   <sequence value="1"/>
   <text value="1-2 tablets once daily at bedtime as needed for restless legs"/>
 </dosage>
</MedicationStatement>

2. Changing a status from active to stopped

PUT http://fhir3.healthintersections.com.au/open/MedicationStatement/2

Request Body

<?xml version="1.0" encoding="UTF-8"?>
<MedicationStatement xmlns="http://hl7.org/fhir">
 <id value="2"
 <status value="stopped"/>  
       <MedicationCodeableConcept>
         <coding>
           <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>
           
           <display value="Acetaminophen 500 MG"/>
         </coding>
       </MedicationCodeableConcept>
 <patient>
   <reference value="Patient/pat1"/>
   <display value="Donald Duck"/> 
 </patient>
 <effectiveDateTime value="2015-01-23"/>
 <note>
   <text value="Patient indicates they miss the occasional dose"/>
 </note>
 <category value="patientspecified">
 </category>
 <dosage>
   <sequence value="1"/>
   <text value="1-2 tablets once daily at bedtime as needed for restless legs"/>
 </dosage>
</MedicationStatement>


Preconditions:

  1. Patient does exist on the server previously with medications.
  2. Server Conforms to the US-Core CapabilityStatement-daf-query-responder for Medication, MedicationStatement, MedicationRequest, and Patient profiles
  3. Client conforms to the US-Core MedicationStatement, MedicationRequest, and Patient profiles
  4. Server and Client mandatory support of the category element for MedicationStatement and MedicationRequest
  5. Client has write access to Server


Success Criteria:

  • Client successfully adds new MedicationStatement to Patient's medication list
  • Client successfule revises existing MedicationStatement on Patient's medication list


Bonus point:

update MedicationRequest, MedicationAdministration and MedcicationDispense resources

With Server Conforming to Pharmacy FHIR Maturity Project MedicationAdministration Profile and MedicationDispense Profile

3. Create a new outpatient Prescription

Issues and Questions (GitHub issues link)


3.1 Action:

Provider creates new outpatient Prescription using the MedicationRequest resource ( this just a record of the request and need to be made actionable by some Workflow pattern described below.

Using

PUT /MedicationRequest/[id] or POST /MedicationRequest


Examples:

adding a new prescription for the patient

POST http://fhir3.healthintersections.com.au/open/MedicationRequest

Request Body

<?xml version="1.0" encoding="UTF-8"?>
<MedicationRequest xmlns="http://hl7.org/fhir">
  <status value="active"/>
  <stage>
     <coding>
        
     </coding>
  </stage>
  <medicationCodeableConcept>
     <coding>
        <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>
        
        <display value="Acetaminophen 500 MG"/>
     </coding>
  </medicationCodeableConcept>
  <patient>
     <reference value="Patient/pat1"/>
     <display value="Donald Duck"/>
  </patient>
  <dateWritten value="2015-01-15"/>
  <prescriber>
     <reference value="Practitioner/f007"/>
     <display value="Patrick Pump"/>
  </prescriber>
  <category>
     <coding>
        <system value="http://hl7.org/fhir/medication-request-category"/>
        
        <display value="Inpatient"/>
     </coding>
  </category>
  <dosageInstruction>
     <sequence value="1"/>
     <text value="one to two tablets every 4-6 hours as needed for rib pain"/>
  </dosageInstruction>
</MedicationRequest>



Preconditions:

  1. Patient does exist on the server previously with medications.
  2. Server Conforms to the US-Core CapabilityStatement-daf-query-responder for Medication, MedicationStatement, MedicationRequest, and Patient profiles
  3. Client conforms to the US-Core MedicationStatement, MedicationRequest, and Patient profiles
  4. Server and Client mandatory support of the category element for MedicationStatement and MedicationRequest


Success Criteria:

  • Client successfully create new MedicationRequest

3.2 Action:

Subsequent workflow steps depend on specific pattern agreed upon by busines partners. See a list of possible scenarios here.

For example the new outpatient Prescription is made actionable by using the Task resource to initiate a prescription to a community or inhouse pharmacy.

Note: The request would generate a NCPDP script for community pharmacy or likely a v2 message or inhouse pharmacy.


Bonus point: update MedicationRequest, MedicationAdministration and/or MedicationDispense resources based on new MedicationRequest.

With Server Conforming to Pharmacy FHIR Maturity Project MedicationAdministration Profile and MedicationDispense Profile

TestScript(s)

tbd