hhs / pillbox_docs Goto Github PK
View Code? Open in Web Editor NEWPillbox at the National Library of Medicine
Home Page: pillbox.nlm.nih.gov
Pillbox at the National Library of Medicine
Home Page: pillbox.nlm.nih.gov
In data there are "&"s. Need to escape those characters.
I submitted for my key weeks ago and still haven't received one. I was wondering if this is still being maintained.
Thanks and sorry to discuss this here. I wasn't sure where else to ask.
Hi there, Pillbox looks really interesting, but I'm trying to understand the difference (in terms of data) between Pillbox and another NLM project, RxImage (http://rximage.nlm.nih.gov/docs/doku.php)? Should I grab data from both locations if I want to have complete coverage? Thanks!
Thanks for your repo. A brief attempt to run pillbox.py found at https://github.com/eyeseast/pillbox/blob/master/pillbox.py was attempted. As a newbie to your program, a simple run helps understand it. The procedures below were done to start it and include some format changes in the code from python2 to python3. Typed this quick, hopefully no typos.
Download your file into Linux terminal, rename to pb.py
curl -o pb.py https://raw.githubusercontent.com/eyeseast/pillbox/master/pillbox.py
change line 170 for python3 format
from: except Exception, e:
to: except Exception(e):
change line 15 for python3 format
from: import urllib, urllib2
to: import urllib.request as urllib2
start python interpreter and import renamed file (pb)
python3
>>>import pb
in interpreter print the SHAPES variable then exit
>>>pb.SHAPES
>>>exit()
A historical JavaScript Object Notation (JSON) record was found for this project inside of code.gov, and pasted toward the end. If it is possible to accept questions about part of that JSON record, some are ....
Can the languages object in the JSON file be updated to add Python language? Python wrappers were observed at one related link, https://github.com/eyeseast/pillbox
Is it a good idea to add a name for an organization or component within agency HHS? Currently the JSON file has a top level Department of Health and Human Services. Examples of organizations or components within an agency were '18F' or 'Navy'.
Would the following change be acceptable to improve the description, or is it inaccurate, incomplete?
current: Pillbox at the National Library of Medicine
change: The Pillbox API identifies unknown pills based on how they look, their ingredients, and a few other criteria.
The download URL reports 404, page not found. Is it acceptable to remove this JSON object while a web/http response does not succeed? It appears to be an optional JSON object.
Is the "Development" status still accurate for this project? Prepared status options from the JSON schema were: "Ideation", "Development", "Alpha", "Beta", "Release Candidate", "Production", "Archival".
Either I made a mistake, or else a question if the "lastModified": "2021-11-08" date is accurate in the JSON file. The repositoryURL and homepageURL seemed to go to the same web page, maybe one has a redirect going to the same place as the other. In any case, the resulting page supplied an activity report, and no activity was observed. Observing no activity caused a question about development status.
Is there a chance to add something to the reusedCode object, since the github repo says there were some forks?
{
"name": "pillbox_docs",
"description": "Pillbox at the National Library of Medicine",
"status": "Development",
"permissions": {
"usageType": "openSource",
"licenses": null
},
"organization": "Department of Health and Human Services",
"homepageURL": "https://github.com/HHS/pillbox_docs",
"downloadURL": "https://api.github.com/repos/HHS/pillbox_docs/downloads",
"repositoryURL": "https://github.com/HHS/pillbox_docs.git",
"vcs": "git",
"laborHours": 0.0,
"languages": [
"Ruby"
],
"date": {
"created": "2009-12-12",
"lastModified": "2021-11-08",
"metadataLastUpdated": "2022-03-22"
},
"tags": [
"Pillbox",
"National",
"Library",
"Medicine"
],
"contact": {
"email": "[email protected]",
"name": "U.S. Department of Health & Human Services"
}
}
The data page says the pill images will be available for download around August 2013, is there any ETA for that?
In my XML queries, I have noticed invalid/special characters in some of the text. Perhaps filtering these special characters or supporting JSON would remove the issue? One such example (Note the '&' in the RXSTRING):
<pill>
<SPL_ID>0</SPL_ID>
<PRODUCT_CODE>0573-0196</PRODUCT_CODE>
<NDC9>005730196</NDC9>
<SPLCOLOR>C48324</SPLCOLOR>
<SPLIMPRINT>Advil;A;CR</SPLIMPRINT>
<SPLSHAPE>C48345</SPLSHAPE>
<SPLSIZE>17.00</SPLSIZE>
<SPLSCORE>1</SPLSCORE>
<RXCUI>1310509</RXCUI>
<RXTTY>SY</RXTTY>
<RXSTRING>Advil Allergy & Congestion Relief (chlorpheniramine maleate 4 MG / ibuprofen 200 MG / phenylephrine hydrochloride 10 MG) Oral Tablet</RXSTRING>
<INGREDIENTS>Chlorpheniramine; Ibuprofen; Phenylephrine</INGREDIENTS>
<HAS_IMAGE>0</HAS_IMAGE>
<image_id></image_id>
<SETID>a6cc97d8-252a-4527-a470-6d9e356342fd</SETID>
<DEA_SCHEDULE_CODE></DEA_SCHEDULE_CODE>
<AUTHOR>Pfizer Consumer Healthcare</AUTHOR>
<SPL_INACTIVE_ING>ACESULFAME POTASSIUM / CARNAUBA WAX / CROSCARMELLOSE SODIUM / GLYCERIN / LACTIC ACID / MALTODEXTRIN / MEDIUM-CHAIN TRIGLYCERIDES / POLYDEXTROSE / POLYVINYL ALCOHOL / PROPYL GALLATE / SUCRALOSE / TALC / TITANIUM DIOXIDE / TRIACETIN / XANTHAN GUM / SILICON DIOXIDE / STARCH, CORN / GLYCERYL DIBEHENATE / HYPROMELLOSES / EGG PHOSPHOLIPIDS / CELLULOSE, MICROCRYSTALLINE</SPL_INACTIVE_ING>
</pill>
The '&' within the field makes this XML invalid.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.