Stream: javascript
Topic: angular directives?
Erich Schulz (May 28 2016 at 13:13):
having got close to an MVP on my little project I'm just starting to wrangle big gobs of JSON with angular (1.4)
Erich Schulz (May 28 2016 at 13:13):
am aiming to work up hopefully some reusable angular directives
Erich Schulz (May 28 2016 at 13:13):
anyone got form here?
Erich Schulz (May 28 2016 at 13:16):
idea being that:
<mml-fhir resource="flags" data="pvm.rec.PatientFlag"></mml-fhir> <mml-fhir resource="conditions" data="pvm.rec.Condition"></mml-fhir>
Erich Schulz (May 28 2016 at 13:19):
becomse something like http://www.clipular.com/c/5913394307137536.png?k=iq4MONxvSX-ODaGJnARtc5mmTsM
Erich Schulz (May 28 2016 at 13:20):
code here
Erich Schulz (May 28 2016 at 13:21):
not spectacular (yet) but making some nice little angular widgets to tame unruly JSON is potentially an opportunity to collaborate?
Erich Schulz (May 28 2016 at 13:24):
my angular-fu is reasonable - but awesome thing about angular templates is its very friendly for people who know html and some basic coding
Michael Lawley (May 30 2016 at 00:54):
I'd be really interested in some simple directives that smoothed over the value[x] stuff. Currently I'm just working directly with the JSON and running into the complexity of sourceUri vs sourceReference (and target[x]) in ConceptMap as we start to consume Resources authored outside our tool
Erich Schulz (May 30 2016 at 03:19):
@Michael Lawley I'm imaginging the FHIR community could probably develop a nice set (or couple of sets) of simple directives. I'm starting from absolute scratch currently - but all my code is going up to Bitbucket - I'm lumping it all in with my main project to start with but splitting them out into their own project would be good i guess (hopefully can enlist someone with some bower component making experience)
Brian Postlethwaite (May 30 2016 at 06:19):
The clinfhir tool is written in Angular too, and its up on github if you wanted to have a look at what's already there.
Erich Schulz (May 30 2016 at 06:37):
thanks @Brian Postlethwaite - that could be useful - although it seems more focused at the meta level whereas I'm definitely trying to present nice instance data - but I'm unable to find the repo on a cursory google - anyone got a link?
Grahame Grieve (May 30 2016 at 06:54):
I don't think it's open source
Erich Schulz (May 30 2016 at 07:54):
i'm definitely only interested in open source
Erich Schulz (May 30 2016 at 07:59):
(am looking Flan, Condition, Observation and MedicationStatement to start with
Erich Schulz (May 30 2016 at 08:00):
which should cover time period and codable statement
Erich Schulz (May 30 2016 at 08:04):
(dependencies I'm wedded to are lodash
, angular-ui-bootstrap
and moment
)
David Hay (May 30 2016 at 08:05):
clinFHIR is definitely open source - https://github.com/davidhay25/FHIRSampleCreator (will get around to the formal license some time) but I haven't focussed on building directives. Plan is to move to Angular2 at some point... but give me a shout if you want to contribute - or have somthing I can use...
Erich Schulz (May 30 2016 at 08:06):
awesome
Erich Schulz (May 30 2016 at 08:06):
i'm thinking that a standalone directive project could be good
Erich Schulz (May 30 2016 at 08:07):
using the ungular-ui-bootstrap
module as a bit of a template (conceptually at least)
Erich Schulz (May 30 2016 at 08:08):
ie just a simple collection of driectives anyone could use with very lttle effort if they have a blob of FHIRish JSON
Erich Schulz (May 30 2016 at 08:09):
angular 2 is a bit of a fly in plan
Erich Schulz (May 30 2016 at 08:09):
word on the street is it isnt quite ready for bigtime
Erich Schulz (May 30 2016 at 08:11):
hopefully most of the logic ground work will be reusable without too much sweat
Erich Schulz (May 30 2016 at 08:32):
if anyone has some "common case" example JSON relating the above resources they can chuck at me (or point me at) that could be helpful
Igor Sirkovich (May 30 2016 at 17:57):
Peter Bernhardt has a nice FHIR AngularJS open source implementation at https://github.com/PBernhardt/FHIR-Cloud
Erich Schulz (May 30 2016 at 22:24):
Thanks @Igor Sirkovich that looks intriguing too
Erich Schulz (May 30 2016 at 22:24):
is @Peter Bernhardt still working on it?
Erich Schulz (May 30 2016 at 22:24):
(no patches for a while)
Erich Schulz (May 30 2016 at 22:26):
its got me thinking about how to decompose the bigger puzzle into a collection of reusable components with singular functions and the minimal dependencies to achieve a give goal
Last updated: Apr 12 2022 at 19:14 UTC