GithubHelp home page GithubHelp logo

velsietis / clinfhir Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hugosoares/clinfhir

0.0 1.0 0.0 17.76 MB

Generates samples for a FHIR server

License: Apache License 2.0

HTML 25.85% JavaScript 71.83% CSS 2.32% Shell 0.01% Batchfile 0.01%

clinfhir's Introduction

FHIR Sample creator

This project is an Angular 'Single Page Application' that has 2 purposes (and 2 target audiences):

  • To create sample files for a FHIR server
  • To develop an angular directive for building valid FHIR resources from a 'profile' resource - ie StructureDefinition

Installation

  1. Clone (or download) the repository
  2. Set up a simple HTTP server that will serve the files to a browser. On Mac OS X/Linux, the file 'startServer.sh' will start up the python HTTP server that serves up pages on port 8000 by default. On Windows, the file 'startServerWindows.bat' will start up the python HTTP server on port 8000 (make sure python is installed).
  3. In a browser, navigate to http://localhost:8000/launcher.html

Usage

As described above, this app is really targetted to 2 distinct sets of users.

Developers

There is a need in the FHIR community for a component that can generate sample fhir resources from profiles (StructureDefinition resources). These are useful for educational purposes, to help a profile designer understand what the conformant instances will look like, and to generate examples that are really helpful for other developers.

The current app goes some way towards meeting this need, but suffers from a number of bugs with the more complex resource types and doesn't manage extensions at all well. The hope is that a small community of developers will add their expertise to enhancing the component - effectively moving it from the current 'single developer' project to one supported by a community.

FHIR Users

Folder layout

artifacts

Configuration files such as options.json which contains options for the sample generation (eg resources to use, sample codesets etc)

css

Style sheerts and image files

fonts

Fonts

includes

HTML files that are 'included' in the main html file

js

JavaScript files used by the sample creator (not the resource builder ).

  • appConfigSvc.js - returns the configuration object - noteably the servers to use. Also used by the resource builder
  • controllers.js - the controller for the sample creator
  • filters.js - filter definitions
  • resourceSvc.js - a service that is used for instantiated resoruces. Currently generates the inwards and outwards resource references that are displayed when an existing resource is selected in the sample creator
  • services.js - services used by the resource creator.

prTemplates

HTML 'include' files that are used by the resource builder and are specific for each datatype. They are included by the renderProfile.html file.

resourceBuilder

The files used by the resource Builder directive.

  • allResources.json - a list of the base resources in fhir. Used when displaying the list of standard resource types for a user to select. If 'reference' is true, then that indicates a resource type that is not referenced by a patient.
  • confirmNewResource.html - used when saving a new resource
  • rbFrameCtrl.js - the controlled file used by the sample creator when 'hosting' the resource builder directive. The directive requires a number of properties to be set, and exposes a number of events during its operation. This controller manages those funtions.
  • rsServices.js - A service that exposes functions used by the resource builder. An attempt to keep the resource builder size reasonable!
  • renderProfile.js - the javascript code used by the resource builder.
  • renderProfile.html - the directive html file. It includes the prTrmplates used to generate the UI
  • vsBrowser.html/js - the ValueSet browser files. Allows a user to example a valueset to see what it contains.

Current limitations

  1. The

clinfhir's People

Contributors

citizenrich avatar davidhay25 avatar sillyhound25 avatar vadi2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.