Open genome-one opened 7 years ago
New design for Monarch to include free text window. I used the accordion to make it easier for the user to switch between upload and a free text window. 1) Upload tool: . I just make a small change for spinner style and layout for upload box.
2) Free text window tool demo: . Users can paste in part of a PDF file that describes a patient . At the moment, it just a demo for how it works and still waiting for back-end @genome-one.
@nguyen9301 I'm super impressed you managed to do this with a gif; how did you record it, may I ask?
@nguyen9301 looks great. Can you try how it looks with tabs instead of an accordion? Also, add an "Upload" button at the bottom of the text section.
@jmcmurry ah yeah.. i used http://recordit.co/ to make a gif! It really cool and easy to use :D ! @cmcnamara87 i plan to do that as well.. coming soon kk :p
Custom tab layout design:
@nguyen9301 I meant horizontal tabs. I think both the accordion and the vertical tabs don't convey that you should Upload OR Add Text. It looks like you should Upload THEN Add Text.
@cmcnamara87 you are right! I changed it to horizontal tabs and when you click on add text, it will clean the upload window!
@genome-one ready to go for the backend
@nguyen9301 @cmcnamara87 - The backend is already there:
POST to http://phenotyper.monarchinitiative.org:5555/cr/annotate with the payload the text from the free text window (in the example below "Flared, cupped and irregular metaphyses.") will give you this:
[ { "start_offset": 19, "end_offset": 39, "length": 20, "original_text": "irregular metaphyses", "source": "HPO", "term": { "uri": "HP:0003025", "preferredLabel": "Metaphyseal irregularity", "synonyms": [ "Metaphyseal fraying", "Frayed, irregular metaphyses", "Frayed, irregular, metaphyses", "Metaphyseal irregularities", "Irregular wide portion of a long bone", "Irregular metaphyses" ] }, "negated": false } ]
My first approach for Free text window:
Copy paste text:
Enter a phrase:
At the moment, It only shows the original text and preferred label. I also added a notification to show whether it's uploaded or not!
Updated 'Add text' window!
oh amazing! @nguyen9301
perfect! Now all I have to do is to finalize the push to GitHub part.
This can be closed BTW ...
can you describe what was the process for getting it up on phenotyper.monarchinitiative.org just so we have it down somewhere
ahhhmazing. Thanks all. Just to check, is the export to Phenopackets.org working or in progress? Should we break out into a separate ticket?
cc: @doctorbud
@jmcmurry - we can probably close this. The export is still in progress - I'm working on it.
@genome-one add a ticket for the export
as soon as export is done we can do a soft beta release to twitterverse. Until then, the button will mislead. Don't want anyone having their data fall on the floor without their realizing it. thanks :)
Add a copy paste window to the current tool so that users can paste in part of a PDF file that describes a patient