Comments (8)
Should bb.js flatten these to simple strings? @mjacksonw, is this useful to you?
from bluebutton.js.
.join(" ")
makes good sense for names. I'm not so sure about addresses (but it's a reasonable start).
from bluebutton.js.
Agreed. Joining names is probably a good default. Addresses should probably be arrays – gives flexibility for formatting on the front end (comma delimited, new line for each entry, etc).
Quick question, I don't have an example with multiple address lines, but does it just look like this?
<addr use="HP">
<streetAddressLine>17 Daws Rd.</streetAddressLine>
<streetAddressLine>Apt 34534abc</streetAddressLine>
<streetAddressLine>A Third Address Line</streetAddressLine>
<city>Blue Bell</city>
<state>MA</state>
<postalCode>02368</postalCode>
<country>US</country>
</addr>
from bluebutton.js.
Yep, that's what I'd expect.
On Mon, Apr 8, 2013 at 5:55 PM, Tom Black [email protected] wrote:
Agreed. Joining names is probably a good default. Addresses should
probably be arrays – gives flexibility for formatting on the front end
(comma delimited, new line for each entry, etc).Quick question, I don't have an example with multiple address lines, but
17 Daws Rd. Apt 34534abc A Third Address Line Blue Bell MA 02368 US
does it just look like this?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-16088300
.
from bluebutton.js.
If I'm understanding your question correctly, I think of flattening as being presentational, and I think of bb.js being at least a layer below that, focusing on the data (at least at this stage). There probably isn't tremendous need for front-enders to need a pre-flattened version of either at this layer, since it's so trivial to join them (or handle them in some other way) as needed.
For the tools I'm building, most folks will probably rely on the full_name
and display_name
filters I've built, that take a full name object and spit out reasonable representations for those respective needs, or they'll use the object directly to construct their own representations.
from bluebutton.js.
Yep, I think we're all agreeing here. I'll stick to the native CCDA data representations (unless something is particularly ugly). @mjacksonw, If you'd like me to build in composite or "pre-processed" properties, like full_name
or something, let me know. It's sort of in a gray area: a data thing vs. presentation. If it makes data access more convenient, might be worth considering building it into bb.js.
from bluebutton.js.
The filters and sorting are way more important, imho. The whole point of my library is presentational, so I won't be making any real requests in that regard.
from bluebutton.js.
Sounds good. Feel free to start opening issues around bb.js filters you might want.
BTW, this issue now resolved in latest build.
from bluebutton.js.
Related Issues (20)
- Patient Address - Street/Apt HOT 4
- Past Medical History - "History of Past Illness" HOT 4
- Encounter Provider HOT 1
- Procedure Specimen always null HOT 1
- Relies on <?xml to choose parser HOT 1
- insurance HOT 2
- 'encounterParticipant' is missing from parser under 'encompassingEncounter'
- TypeError: undefined is not a function HOT 2
- Seeing sample CCDA observation not picking up text HOT 3
- Multiple template Id's (C32 & CCDA) in header cause parsing to fail
- <patientRole> ID and SSN should have real data elements not fake values HOT 1
- Question: Removing hard-coded OIDs in entry population functions HOT 3
- Enhancement: Generalized "code" capture with translations HOT 2
- bluebuttonjs.com has expired HOT 1
- CCD Generator does not work at all HOT 4
- CCD Generator does not work at all
- Providing document type by hand
- religiousAffiliationCode does not work without displayName HOT 1
- Blue-Button doesn't parse through all of the Telecom use cases HOT 5
- In Document Author section the assigned person and representedOrganization is not handled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluebutton.js.