Friday, March 29, 2013

Another hole in my head

As in, I need another one of those like I need another hole in my head.  And often, when I hear about a new initiative being developed somewhere, I think: "Shoot me now."


I think Daffy has it right.  One of the reasons why there are so many different initiatives is "Pronoun Trouble".  It has to do with fine distinctions between who has "control of the project" and who winds up with "ownership of the result".

In IHE and HL7 both, members are quite accustomed to working on initiatives that are "sponsored" by others.  The end result becomes an IHE profile or HL7 standard or implementation guide. Sponsorship can mean many things.  In some cases, it just means "promoted", and doesn't really involve any contribution of goods or services towards getting the job done, except perhaps contribution of the "problem to be solved".  In other cases, especially where the sponsors have a bit of a clue, it does involve contribution of resources to the project.

ONC S&I Framework projects take a variety of different approaches (one of the challenges of a lack of consistency and governance in S&I activities).  On a few occasions, they've started inside or along-side and SDO process (e.g., Consolidated CDA and LRI for example).  On other occasions, they've made some progress, and concerned initiative members have move things along inside an SDO in support of the process (e.g., Direct, Query Health and ToC).  On other occasions, there was good intent to involve an SDO, but what we are left with is a specification that still has no home (e.g. The Direct Applicability Statement).

I like some of what ONC has contributed as the "impatient convener" in the standards development process, especially in the area of getting interested parties engaged, in running pilots and developing reference implementations, and in contribution of real-world success criteria.  But some of it is still troubling, especially with respect to variable governance, communciation, and coordination.

As S&I evolves, I'd like to see more collaboration across SDOs, and better utilization of the limited resources of the standard community (myself included).  I'm still thinking about how that could work, just as I have been for quite some time:


Hopefully, someday, we'll figure it out together.


Thursday, March 28, 2013

Getting Close = Jinxed Myself

I think we are starting to reach closure on the ABBI PULL Initiative.  I finally got my editing done on the OAuth Workflows and API documentation.  There's a bit more work to be done in the next week.  One of the outstanding challenges is in figuring out how to bind an authorization to a specific patient in both the client application and at the data holder.

It is a pretty easy problem to solve in the if we make the Authorization end-point return a bearer token that is a JWT that contains the authenticated identity of the end-user, plus some other stuff.  Another way would be to communicate between the authorization end-point and the data-holder in some way that is unspecified [I don't like that idea].

More challenging is the case where the same identity can be used to access data about multiple patients, as in the case where I get data about my children and myself.  In this particular case, I think the right answer is to use the scope parameter of the authorization grant in order to communicate to the authorization endpoint who the authorization is for.  When it grants the request, the authorization endpoint can encode the scope in the bearer token, OR communicate it to the data holder in some way that is unspecified [again, I don't like that idea].

The scope token need not be complicated.  It, in combination with the authenticated user identity must uniquely identity the patient whose data is being accessed, but when appearing alone need not do so.  This operates under the assumption that the identity being used to authorize use is provided to the data holder in some way.

The truly critical challenge will be for application developers.  They should take steps to ensure that data from different data holders for different patients isn't mistakenly combined.  In other words, the app shouldn't combine data of my youngest daughter (from her pediatrician) with that of my wife from her ob/gyn, even though they have the same first and last name.

Hmm, that step is going to require both some critical thinking, and a risk assessment.  Oh well, close is never the same as done.


Wednesday, March 27, 2013

ONC seeks input on Consumer eHealth

HealthIT.gov Banner

Provide Your Input to Inform ONC's Consumer eHealth Strategy
On Monday, March 25, 2013, ONC, in collaboration with Cornell University, launched a new web platform for obtaining public input to inform health IT strategic planning. Check out the new PlanningRoom site, and provide your thoughts.

ONCs initial focus is on consumer eHealth. To encourage public input to inform the consumer eHealth strategy, ONC is partnering with Cornell University's eRulemaking Initiative – an academic research group working with Federal agencies to increase public participation in government decision-making.

You can visit PlanningRoom now through May 9, 2013, to participate in discussions and provide comments on specific topics. The site includes discussion topics and questions to help guide the conversation.
The Office of the National coordinator for Health Information Technology
.

Tuesday, March 26, 2013

The Map is not the Territory

I get asked a lot how someone should structure their database to support generating or using CDA documents with some sort of application.  I always find it challenging to answer these questions, because I don't have a one-size-fits-all answer.  It really does depend on what you are trying to do.

The HL7 CDA standard is designed principally to serve as electronic documentation of an encounter with a healthcare provider.  For some applications, that is directly in line with what they do (e.g., EHR systems).  For others, that's not their main purpose.  A Clinical Decision Support application can use CDA to capture and communicate specific data elements to implement its workflow, either as input or output.  An analytics application can survey CDA documents and gather statistics suitable for computation of quality measures and development of dashboarding applications.  Another kind of application could do disease surveillance.  So the CDA Model (the map), may or may not be well aligned with the way you need information to be structured (the territory).

One of my least favorite forms of this question is how can I get JAXB to map the CDA Schema to my database.  My head just explodes.  I understand the desire to get a computer to do the mapping.    But I've mapped CDA, CCR, and numerous other models of healthcare information into existing database structures.  I've also mapped them into brand-new structures that are purpose designed for my application.  I have never been able, except for the simplest of things, to go from exchange format to useful database structures or object models, without significant human intervention.  The introduction of the smallest bit of recursion, or data type dependency leads to the need for manual guidance.

Nor have I ever designed the data structures or models of an application to serve the interchange formats.  I've always preferred to design the model to serve the purpose for which it is being used, rather than around how I get the data.  The reason for this is that data exchange events are generally rare as compared to general use of the data processing internally in the systems I'm working with.

I really don't want to bear exchange (e.g., data marshaling) costs during data processing.  A simple example of what I mean:  It's far more efficient for a CPU to process some data in binary form (e.g., for integer and floating point arithmetic).  However, it can also compute in BCD (Binary Coded Decimal format), and it's much easier to get data into and out of BCD than it is in binary formats for integers or IEEE floating point arithmetic.  Is that a good reason to keep it in that form?

When you look at the efficiency in computation gained by performing calculations in a format that is better suited, the answer is a resounding no.  The number of times that you must convert from compute friendly formats to exchange friendly formats and back is small enough that it is well worth while to go to a compute friendly structure as soon as possible.

So, should you ask me what database structures you should use, don't be surprised if I ask what you are doing, and if my response has nothing to do with CDA whatsoever.




Monday, March 25, 2013

App-in-a-Can

Have you been annoyed by the recent proliferation of web-site specific applications that you can now download for your Android or IOS device?  It seems as if everywhere I go, I have to stop and tell the website I'm directed too to skip the App download.

No.  I do not want your site-specific application to put your website in front of me every day.  That's why I use aggregator Apps and/or RSS feeds.

Today I was appalled to see yet another example of this: Now being pushed on physicians.  For a fee, it seems, some organization (whom I won't even bother linking to) will allow you to create a one or four page referral "App" from a template, where one page is a referral form, and the others could be any content you want to display.

Really?  Really.

In the HTML world, we used to call those things: A web-site in-a-can, and the end result was as bland and boring as most canned vegetables.

In fact, anyone considering having an App created like this, pay attention.  Ask yourselves, why would someone use your "App".  What value does it bring them, other than being able to refer patients to you?  Do you have really great content?  Some cool tools?  Something else?

If the value proposition for the the App just leads towards you, the App supplier, it's not an App that your customers will consider worth having.

And if it looks like it came from a can, I know what can they'll put it in.

Friday, March 22, 2013

On being Strategic rather than Comprehensive

In Meaningful Use, there are several components related to care planning that need to be communicated for transitions of care: The care team, the care plan (as described in CCDA), and patient instructions.  This was a good first start, but there's far more to do.  HL7, IHE, S&I Framework and many others have been working on developing a more comprehensive way to address care plans and care planning for quite some time.

This week, IHE PCC was reviewing content being developed for one of our work items related to care planning.  On the screen earlier this week was a proposal to add the following term to the IHE Glossary.

Care Plan   The synthesis and reconciliation of the multiple plans of care produced by each provider to address specific health concerns.

“You have defined care plan in terms of itself.” I comment.  Others immediately responded that they hadn’t.  “Sure you have: care plan and plans of care.” I chimed back.  I was then told that “Those are two different things.”, and thus began my education into what the current thinking is that's been developing across various groups.

This is what my daughter calls a face/palm (or in this case a head/desk) moment.  Those moments are usually accompanied by a loud noise as my palm (or my desk) comes quickly into contact with my face (or head).  I think the pain helps distract me from the former attack on my senses.

“OK,” I explained, “I’m never going to be able to explain this to anyone.  The way that the English language works, these two phrases mean the same thing.”  I did spend several years developing linguistic and natural language processing software, and managed to pick up a few things from my linguistic colleagues. 

A parse of “care plan” will result in in a noun phrase (a phrase acting as a noun) composed of “care” (noun adjunct = noun used as adjective) plan (noun).  Thus, plan is the main idea, and care is a qualifier that means the plan related to care.  I’m assuming I don’t need to define plan or care (yet).

A parse of plan of care results in a noun phrase, where “plan” and “care” are again nouns, “of” is a preposition, and care modifies/qualifies plan.  It is the plan about or related to care. 

My brain, and if you are reading this blog, likely yours, has been trained to treat “Care Plan” and “Plan of Care” as if they were the same thing.  We can all be indoctrinated to understand that they are different things, but recall what I said a few days ago about social interoperability, and what I said a few weeks before about not caring about what it is called, so long as I know what it is. 

These words fail the grandma test (and the developer test, and the provider test …). Something has to give here.  We need new words, because the ones we have only add to the confusion.  Definitions can be used to override instinct, but I'd much rather rely instincts, rather than circumvent them.  Let’s take a look at the words we have, and a picture to go along with them.

The image to your left shows that there is a first outer ring that encompasses the second inner ring, which has a third subcomponent containing a final inner component.  The image comes from material developed for the Longitudinal Coordination of Care project in the ONC S&I Framework from the Longitudinal Care Plan subworkgroup.  What follows are the words describing these rings that were suggested for the IHE PCC Glossary, and which are derived from the S&I Activities.




What it is called
What it is
Care Plan
The synthesis and reconciliation of the multiple plans of care produced by each provider to address specific health concerns.
Plan of Care
A concept some clinicians use to focus on discrete problems, the specific interventions to address the problem, and achieve a certain goal related to the problem.
Treatment Plan
A concept developed by a provider in collaboration with the individual to address an individual’s health concern under the purview of a single provider.
Instructions
Information or directions to the patient and other providers including how to care for the individual’s condition, what to do at home, when to call for help, any additional appointments, testing, and changes to the medication list or medication instructions, clinical guidelines and a summary of best practice. This is provided as a list of action steps given to a team member or patient to address health concerns.

The important part of what you see above is not the words on the left, but rather the words on the right.  The only notion of the “Care Plan” that I have ever seen is what my mother used to carry in her head for my step father, aided by her notes.  This concept exists rarely in the real world, but I have seen enough real world examples to know this isn’t a unicorn.  But it is rare enough to be a zebra (at least in my part of the world).

The second and third items are often confused, and in fact, IHE a few years back agreed that the code for the TREATMENT PLAN section in LOINC was the right place to put the CARE PLAN information (which has resulted in further discussions about change proposals to some existing profiles).  It’s confusing enough to experts, and healthcare providers certainly don’t agree on it either.  Instructions is perhaps a bit broader than I would expect, but seems to fit in with current notions.  And there seems to be agreement among healthcare providers that instructions are part of the care plan (at least those given to patients are).

The definition of the outermost object seems to be missing an important participant, the patient.  This is especially true when the phrase “Care Plan” is used with a definite article.  The only individual that has any chance of having access to “The Care Plan” is the patient or other care giver who has access to all the information available.  You can see why Care Plans are zebras.  You need an engaged patient or caregiver who wants to coordinate all this data, and they have to have access to it as well. 

My mother’s care plan  for my step father was flawed in that she did not have access to all the data, but that’s wasn’t for lack of trying. Using the definite article for a care plan ("The Care Plan") that is owned or developed by anyone other than the patient or their care giver is a mistake.  In the provider’s mouth, those words better be something like “this is the care plan that I’d suggest for you”, or “let’s go over your care plan”.  If “you” are not part of the care plan when your healthcare provider discusses it, then it’s probably his or her plan, and he or she shouldn’t be surprised when you change it to suit your needs.


In the battle for health and against disease, the commander-in-chief needs to be the patient.  They should be setting the objectives and goals, and approving the strategies used to reach them.  They may override some decisions where they feel necessary to in order to balance the priorities for each objective.  In the above definitions, I see the word “goals” used once, and the words “objective” and “priority” never appears.  The “plan” is what you do to meet goals.  The terms “goal” and “objective” are synonyms, and are often used interchangeably. 

I’ve been trained to specify objectives in a broad way, and to derive goals from objectives.  Goals allow you to measure whether the objective is being reached (in fact, if you work this way, the objective is often stated subjectively, and the goals are objective statements -- I never said social interoperability is easy).  If we talk about, and deliver goals and objectives together, I don’t think anyone will mind, and it’s still pretty easy to explain that goals need to be measurable.
"The key to strategy... is not to choose a path to victory, but to choose so that all paths lead to a victory." — Cavilo, The Vor Game
In a complex situation, there is never a single comprehensive plan which leads to success, but rather a collection of plans and alternatives in which enough plans succeed to result in the desired outcome.  Has your doctor ever told you: our plan is to try this (e.g., PT), and if that doesn’t work, then we will do that (Steroid injection), and finally, if necessary we will do the other thing (surgery)?  These represent the alternative paths (in a plan related to a knee problem).  I love this  doctorial we, but only when used collaboratively, that than in the royal fashion.

Planning is done at different levels, starting from principals, moving to strategies related to goals and objectives, and then on to tactics, which are executed via orders and instructions.  In developing a strategic plan for any purpose, you have high level principles and priorities, which lead to objectives and goals.  Each objective and goal can become the foundation of a tactical plan to achieve the objective.  In delegating the objectives from the strategic plan to others, the planner will often provide additional information and instructions about how to maneuver to reach the objective.

Strategic objectives and specific tactics are dynamic, responding to the changing system (thus, the need for alternatives).  I have never seen an overall comprehensive plan for patient care, such as would be describe in the “Care Plan”.  No organization I have ever worked with ever has an overall comprehensive plan in one place to reach its objectives.  Leaders can speak to the strategic objectives, and can often tell you what others are doing to achieve them at a high level.  The details of those tactics are delegated to experts in each objective.  If you want to know the detailed tactics, you have to speak to those experts.  The process is dynamic, as the tactics often change when alternatives are activated.

Rather than think about a comprehensive Care Plan as described above, I would prefer this view of the care planning process.

Strategic Care Plan:  This is an overview, containing the patient’s objectives and goals for overall care.  It identifies the patient’s principals and priorities that the care must meet.  It synthesizes and is used to reconcile differences between individual tactical care plans, but summarizes rather than contains all of them, although it should reference them in some way.  It most closely resembles the “Care Plan” described above.

Tactical Care Plan: This is a plan designed to achieve one (or more related) objectives.  It combines features of the Plan of Care and the Treatment plan above.  In the continuum between strategy and tactics, high level tactical plans will reference other, more detailed tactical plans.  My provider’s overall plan to control my blood pressure includes tactics that he is responsible for, and those he has delegate to others (e.g., a dietitian and me).  Those delegates may have tactical plans of their own.  Delegation is often represented through orders (e.g., medications, referrals and consultations) and instructions.

Orders and Instructions:  This component represents the orders and instructions in a tactical plan and most closely resembles the Instructions described above.  Orders and instructions in the tactical plan provide can provide links to those others who may have their own plans, and may provide alternatives to address changing conditions.  Advance Directives are nothing more than orders and instructions from the patient to the provider for care and treatment that are based on their principals and priorities.  They belong in the mix for care plans as well.


The "Care Planning" process should be less about comprehensive planning, and more about collaboration and objectives.  Yes, it is important to understand the steps to achieve an objective, but those plans need to be more agile and dynamic, coordinated through self-organizing care teams.

As I think about how my mother manages care, she is the commander-in-chief.  She doesn't have to know everything, but she does know where to go to get the details when she needs them.  In the mountains of data that healthcare can generate, it's not necessarily about what you know, but what you know about how to find out (Dr. Google is so powerful because of that).  Health IT can help, but we should not assume that all of the data will or must ever reside in one place.  It needs to be strongly linked together though, so that the generals can pull together the information they need, in order to carry out the hopes of the commander-in-chief.

-- Keith

Wednesday, March 20, 2013

The Journey of 4000 Miles could have been 20

I don't know which is more amazing, that I may actually come back from Italy with a solution that may work to solve my million registration problem (which could just be a 10,000), that I had to travel 4000 miles to talk to a person who lives just 20 miles from my house (I've already walked that far this last week), or that the solution I may have coming out of an IHE meeting is clearly out of IHE's scope for its profile of OAuth 2.0 in IUA, even though it aligns quite well with other IHE profiles for security and privacy (I may write a post about that later).

Here's the solution in a nutshell:

  1. Application Developers obtain a certificate that enables them to sign other certificates.
  2. Application instances obtain (are provisioned with during or after installation) a certificate signed by the application developer.
  3. Application instances provide an attestation of their instance identity that is signed by the application instance's certificate in a normal authorization workflow that does not require a separate registration.

The authorization endpoint can verify the identity asserted by the application instance by verifying the signature of the identify assertion and the certificate chain. If an application instance misbehaves at some point, the authorization endpoint can be configured to reject the identity of that application instance, locking out only one installation. If a pattern of behavior appears where many instances of an application misbehave, the application developers certificate can be blacklisted, preventing any instance of that application from being authorized.

This is the level of security that has been deemed to be suitable for the ABBI PULL protocol. It allows a single bad actor to be rejected, and also allows all applications from a particular developer to also be rejected if deemed necessary.

The Direct protocol as specified by ONC already has a mechanism to white-list certificates through the Trust Bundle. The trust bundle is the collection of certificates that are considered to be trusted. A certificate chain is considered to be trusted if during the verification process, the certificate at the root of the trust chain (or earlier) appears in the trust bundle. This very same mechanism can be used by ABBI PULL to establish the chain of trust for certificates. It could be the same trust bundle as is used for the Direct trust bundle, but there are probably good reasons to keep these two bundles separate.

I was pretty close a while back, when I suggested that the application instance be provided with a signed identity assertion. What changes is that it is provided not with a signed identity assertion, but rather a signed certificate, which is nothing more than an signed identity assertion with the addition of a public and private key.

This is why I don't claim to be a security expert. I can understand this stuff when it is explained to me by experts, but couldn't have devised this on my own. Rob Horn (co-chair for IHE IT Infrastructure) was the person who did explain it to me, but he didn't invent the idea. It's the same mechanism used to sign Linux distributions from various suppliers.

The only difference in what I previously proposed (using a signed identity assertion), is in which certificate is used to sign the identity assertion. In this case, the certificate used is the certificate that the application instance is configured with. How this configuration is performed is completely under the control of the application developer, and becomes outside of the scope of the ABBI PULL specification.

The key to proving out this solution is whether I can make it work with existing OAuth 2.0 libraries, using signed identity assertions.

For what it's worth, the act of the authorization endpoint of verifying the signature on the asserted application identity is essentially the same as authenticating the installed application. So even when the implicit grant type is used, the application identity could still authenticated by the authorization endpoint.

Strengths:

  1. Reuse of existing "Trust Bundle" mechanism to support identification of "trusted" applications instead of trusted Direct addresses.
  2. Addition of client authentication even in implicit grant flows (by virtue of verifying signatures on the asserted identity).
  3. Simplifies Authorization endpoint responsibilities since they no longer have to be identity providers for applications, but can rather defer application identity management and provisioning to application developers, and use the signed identity assertions and a trust bundle to manage client authentication.

Weaknesses:

  1. Unproven with existing OAuth 2.0 libraries currently available.
  2. Doesn't follow the common used patterns for Twitter, Facebook or Google for OAuth 2.0.
  3. Use of an unproven and likely to be changed IETF Draft for JWT Bearer Tokens.

For a pilot, the IETF work seems to be close enough.  I'm not terrible worried about weakness #2, since that can be addressed by adequate developer documentation.  Also, when you are Google, Facebook or Twitter, conforming to what others do isn't necessarily part of your business model or concern.

That leaves weakness #1, which means I may have my work cut out for me. I just have to find a few OAuth 2.0 libraries to play with. Any thoughts on which ones I should look at (Java/JavaScript only please)?

As always, feel free to poke holes and deflate my currently inflated sense of accomplishment.

   -- Keith

P.S.  In trade for this solution, Rob got my entire text from the ABBI work on OAuth 2.0, in the hopes that he, as editor of IHE's IUA profile will find it useful.  In this, I hope that what IHE emerges with, and what ABBI starts with, eventually wind up in the same exact place, the IHE IUA  profile of OAuth 2.0.