Coder Social home page Coder Social logo

Comments (3)

blacktm avatar blacktm commented on July 24, 2024

I agree that codes should be parsed consistently, lots of benefits there, but I'm not sure what you mean about by giving the code a property name. The structure currently looks like:

{
  "name": "CBC WO DIFFERENTIAL",
  "code": "43789009",
  "code_system": "2.16.840.1.113883.6.96",
  "code_system_name": "SNOMED CT",

Are you suggesting something more like this?

{
  "label": "CBC WO DIFFERENTIAL",
  "code": {
    "code": "43789009",
    "code_system": "2.16.840.1.113883.6.96",
    "code_system_name": "SNOMED CT",
  },

Or would you drop code_system and code_system_name entirely?

{
  "label": "CBC WO DIFFERENTIAL",
  "code": "43789009",

from bluebutton.js.

jmandel avatar jmandel commented on July 24, 2024

We most certainly need code_system and/or a standardized code_system_name -- otherwise the codes are incomplete. What I was thinking about was more like your code: {} example. Although rather than calling it code, I'd give it a meaningful property like

"labPanelName": {
  "label": "CBC",
  "code": "43789009",
  "code_system": "2.16.840.1.113883.6.96",
  "code_system_name": "SNOMED CT",
  "translations": [{}, {}, ..]
},
"date": "2013-04-04", ...

the idea thought would be in bb.js there's a common function parseCode-ish for picking a code out the XML (and translating to JSON) for any resource, rather than repeating the same steps for every resource.

from bluebutton.js.

blacktm avatar blacktm commented on July 24, 2024

I've added this to the list of JSON to review. I'm working on a PR to add a lib/ccda/codes.js that all CCDA codes would be sent to and parsed consistently.

from bluebutton.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.