Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Description

http://wiki.openmrs.org/display/docs/Flowsheet+Module

...

Flowsheet

...

is

...

available

...

as

...

a

...

module

...

which

...

can

...

be

...

installed

...

into

...

openmrs

...

using

...

the

...

"Manage

...

Modules"

...

functionality

User interface

The user interface for the flowsheet module has been created using the following

  • JQuery 1.4.2

...

  • (

...

...

  • )

...

  • JQuery

...

  • UI

...

  • 1.8.2

...

  • (

...

...

  • )

...

  • JQuery

...

  • Grid

...

  • 3.8

...

  • (

...

...

  • )

...

  • Auto

...

  • complete

...

  • (

...

...

  • )

...

  • Flot

...

  • (

...

...

  • )

...

The

...

population

...

of

...

the

...

GUI

...

(flowsheet)

...

is

...

done

...

via

...

an

...

AJAX

...

request

...

which

...

returns

...

a

...

JSON

...

string

...

which

...

is

...

then

...

passed

...

to

...

the

...

JQuery

...

grid

...

and

...

the

...

filter

...

controls.

...

 
Core of the logic is in the flowhsheet.js

...

file.

...

Server

...

Side

...

At

...

the

...

server

...

side

...

we

...

have

...

a

...

controller

...

FlowsheetFormController which handles the AJAX requests passed to the url /flowsheet.json 

? Image Added

?The controller returns a json string in the following format

No Format

{
 entries : [{conceptId:"1",value:_{color:#5000ff}_"10"_{color}_,date:_ {color:#5000ff}_"2001-01-12"_{color}_}_
_\],_
  _conceptMap:{_
  _       _ {color:#5000ff}_      "1"_{color}_:_

_           {_

_            name:_{color:#5000ff}_           {
            name:"concept name"_{color}_,_

_            numeric            numeric:{hi:_{color:#5000ff}_"1"_{color}_,low:_{color:#5000ff}_"12"_{color}_,unit:_{color:#5000ff}_"unit"_{color}_},_

_            desc:_{color:#5000ff}_"description"_{color}_,_

_            classType:_{color:#5000ff}_"Test"_{color}_,_

_            dataType:_{color:#5000ff}_"Coded"_{color}

_           },_

 {color:#000000}{_}conceptClasses:\[_{color}{color:#5000ff}_"Test"_{color}{color:#000000}_,_{color}{color:#5000ff}_"Diagnosis"_{color}{color:#000000}_,_{color}{color:#5000ff}_"Finding"_{color}{color:#000000}_\],_{color}

{color:#000000}_ obsDates:\[_{color}{color:#5000ff}_            desc:"description",
            classType:"Test",
            dataType:"Coded"
           },
 conceptClasses:["Test","Diagnosis","Finding"],
 obsDates:["2001-01-12"_{color}{color:#000000}_,_{color}{color:#5000ff}_"2002-01-12"_{color}{color:#000000}_,_{color}{color:#5000ff}_"2010-01-12"_{color}{color:#000000}_\]_{color}

_};_