Skip to content

A basic nodejs implementation of the HL7 CCOW ContextManager (and related) interface(s).

Notifications You must be signed in to change notification settings

jonathanbp/ccow.contextmanager

Repository files navigation

CCOW ContextManager

UPDATE JUNE 2016

This project is continued by SIRENIA. If you are looking for a production-ready, battle-hardened and very, very cost-effective beast of a Context Manager then this is the place to go.


This is an implementation in nodejs of a few of the interfaces in the HL7 CCOW specification. Its purpose is to provide a functioning (and simple) ContextManager.

NB: Current status is a very rough implementation - not suitable for production.

Currently the ContextManager manages a single context and the following kind of flow is supported (CP is ContextParticipant and CM is ContextManager):

CP ==>    JoinCommonContext(applicationName,<contextParticipant>)     ==> CM
CP <--    OK, participantCoupon                                       <-- CM
CP ==>    StartContextChanges(participantCoupon)                      ==> CM
CP <--    OK, contextCoupon                                           <-- CM
CP ==>    SetItemValues(itemNames, itemValues, contextCoupon)         ==> CM

          ...

CP ==>    EndContextChanges(contextCoupon)                            ==> CM
CP <--    noContinue, responses                                       <-- CM
CP ==>    PublishChangesDecision(contextCoupon,decision)              ==> CM
CP <--    listenerUrls (web-application case)                         <-- CM

          ContextChangesAccepted (CM ==> all other CPs)

          ...

CP ==>    LeaveCommonContext(participantCoupon)                       ==> CM
CP <--    OK                                                          <-- CM

Install

Requires node, npm and coffee-script and installation is then mostly easily done with npm:

$ npm install -g coffee-script
...
$ npm install -g ccow.contextmanager
...

Run

Use the ctxmgr command which starts a server on port 3000.

$ ctxmgr

Changelog

0.0.25 (2013-12-02)

  • Fixing minor issue w serialization.

0.0.11-24

  • Frantic bug fixing.
  • Implemented more ContextParticipant methods.

0.0.10

  • Fixed a _ bug.

0.0.9

  • Now returning a

    noContinue: [boolean] responses: string[]

from ContextManager.EndContextChanges.

Status

Current status is a basic implementation of ContextManager, ContextParticipant and ContextData interface.

License

The MIT License (MIT)

Copyright (c) 2012 Jonathan Bunde-Pedersen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A basic nodejs implementation of the HL7 CCOW ContextManager (and related) interface(s).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published