Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert JSON schema to Django model and display this instead of JSON schema #14

Open
pacharanero opened this issue Mar 5, 2018 · 0 comments

Comments

@pacharanero
Copy link
Contributor

Based on the user testing today we decided that the second iteration would show the clinician a view that was more similar to the code. I've created a Django model which is semantically identical to the JSON schema object.

@davidmiller It turns out to be a little harder in Javascript to handle a Python class than it was to handle JSON (unsurprisingly).

I wasn't really very sure on how to proceed with this, ideally we want to bring in the Python code in some fashion. Ideas I had included:

  • embed the python as plain text (although I couldn't actually find an elegant way to do this in angular)

  • embed the python using some code syntax highlighting library like Highlight.js

  • use something like the embeddable Ace editor to insert the code (although again, unsure if having editability in this clinician view is beyond the necessary scope.

(but was concerned about burning a lot of time pursuing any of them without being sure it was the right direction)

In the interim I could hard-code the model in the HTML?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant