Need advice about which tool to choose?Ask the StackShare community!

FHIR

60
47
+ 1
0
JSON

1.9K
1.6K
+ 1
9
Add tool

FHIR vs JSON: What are the differences?

Introduction

FHIR and JSON are related but distinct in various ways. FHIR (Fast Healthcare Interoperability Resources) is a standard for exchanging healthcare information electronically, while JSON (JavaScript Object Notation) is a lightweight data interchange format. The key differences between FHIR and JSON are as follows:

  1. Data Structure: FHIR is a comprehensive and structured healthcare data model that defines resources, interactions, and data types, providing a standardized way to represent healthcare information. On the other hand, JSON is a flexible and schema-less data format that organizes data in key-value pairs, allowing for more dynamic and unstructured data representation.

  2. Semantics: FHIR provides semantic meaning to the data elements through its resource definitions, enabling interoperability and understanding among different healthcare systems. JSON, however, does not inherently carry any context or semantics, as it is primarily focused on data representation rather than explicit meaning.

  3. Standardization: FHIR is a standardized set of resources, interactions, and data types that allows consistent representation and exchange of healthcare information, ensuring interoperability across various systems. JSON, on the other hand, does not have a specific standard for healthcare information representation, which can lead to variations in data structure and semantics.

  4. Extensibility: FHIR supports extension mechanisms that allow for the addition of custom or domain-specific data elements to the standard resources, facilitating flexibility and customization. JSON, being a data format, can also accommodate additional fields or properties, but it lacks the predefined structure and constraints offered by FHIR.

  5. Interoperability: FHIR focuses on achieving interoperability by defining standard resources, profiles, and terminologies that enable seamless information exchange across different healthcare systems. JSON, being a more generic data format, does not inherently provide specific interoperability features or constraints.

  6. Domain-specificity: FHIR is designed specifically for healthcare information exchange and covers a wide range of healthcare domains, including clinical, administrative, and financial aspects. JSON, being a general-purpose data format, can be used in various domains beyond healthcare and is not tailored specifically to healthcare data representation.

In Summary, FHIR is a standardized healthcare data model with structured resources and semantics, enabling interoperability, while JSON is a more flexible and generic data interchange format that lacks predefined healthcare-specific structures and semantics.

Advice on FHIR and JSON
Needs advice
on
JSONJSON
and
PythonPython

Hi. Currently, I have a requirement where I have to create a new JSON file based on the input CSV file, validate the generated JSON file, and upload the JSON file into the application (which runs in AWS) using API. Kindly suggest the best language that can meet the above requirement. I feel Python will be better, but I am not sure with the justification of why python. Can you provide your views on this?

See more
Replies (3)
Recommends
on
PythonPython

Python is very flexible and definitely up the job (although, in reality, any language will be able to cope with this task!). Python has some good libraries built in, and also some third party libraries that will help here. 1. Convert CSV -> JSON 2. Validate against a schema 3. Deploy to AWS

  1. The builtins include json and csv libraries, and, depending on the complexity of the csv file, it is fairly simple to convert:
import csv
import json

with open("your_input.csv", "r") as f:
    csv_as_dict = list(csv.DictReader(f))[0]

with open("your_output.json", "w") as f:
    json.dump(csv_as_dict, f)
  1. The validation part is handled nicely by this library: https://pypi.org/project/jsonschema/ It allows you to create a schema and check whether what you have created works for what you want to do. It is based on the json schema standard, allowing annotation and validation of any json

  2. It as an AWS library to automate the upload - or in fact do pretty much anything with AWS - from within your codebase: https://aws.amazon.com/sdk-for-python/ This will handle authentication to AWS and uploading / deploying the file to wherever it needs to go.

A lot depends on the last two pieces, but the converting itself is really pretty neat.

See more
Recommends
on
GolangGolang

I would use Go. Since CSV files are flat (no hierarchy), you could use the encoding/csv package to read each row, and write out the values as JSON. See https://medium.com/@ankurraina/reading-a-simple-csv-in-go-36d7a269cecd. You just have to figure out in advance what the key is for each row.

See more
Max Musing
Founder & CEO at BaseDash · | 1 upvotes · 287.3K views
Recommends
on
Node.jsNode.js
at

This should be pretty doable in any language. Go with whatever you're most familiar with.

That being said, there's a case to be made for using Node.js since it's trivial to convert an object to JSON and vice versa.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of FHIR
Pros of JSON
    Be the first to leave a pro
    • 5
      Simple
    • 4
      Widely supported

    Sign up to add or upvote prosMake informed product decisions

    What is FHIR?

    It is a standard for health care data exchange, published by HL7. Interoperability protocol that qualifies for MACRA and 21st Century Cures laws.

    What is JSON?

    JavaScript Object Notation is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use FHIR?
    What companies use JSON?
    See which teams inside your own company are using FHIR or JSON.
    Sign up for StackShare EnterpriseLearn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with FHIR?
    What tools integrate with JSON?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    Aug 28 2019 at 3:10AM

    Segment

    PythonJavaAmazon S3+16
    7
    2557
    What are some alternatives to FHIR and JSON?
    REST
    An architectural style for developing web services. A distributed system framework that uses Web protocols and technologies.
    Google Cloud Healthcare API
    Bridges the gap between care systems and applications built on Google Cloud. By supporting standards-based data formats and protocols of existing healthcare technologies.
    NextGen Connect
    It is a cross-platform interface engine used in the healthcare industry that enables the management of information using bi-directional sending of many types of messages. The primary use of this interface engine is in healthcare.
    DHIS2
    It is the flexible, web-based open-source information system with awesome visualization features including GIS, charts and pivot tables.
    OpenEMPI
    In order for an organization to be able to aggregate and manage clinical data on behalf of a patient, it is of utmost importance that the organization is able to accurately identify distinct patients whose data is collected across multiple sources. The presence of duplicate patient demographic records in a system introduces many inefficiencies and costs to an organization. Various industry studies have concluded that the rate of duplicate records in a typical Electronic Medical Record system ranges between 5 and 20 percent of all patient records. By using OpenEMPI, an organization can quickly and accurately identify and resolve duplicate records in their systems, resulting in improved quality of care and considerable cost savings.
    See all alternatives