📖 JSON and XML
Structured data refers to any data that is organized in a specific format, making it easy to enter, store, search, and analyze. In healthcare, this could include patient information like vital signs, diagnoses, medications, lab results, or allergies. Structured data is typically presented in predefined formats like tables or fields that ensure consistency and accuracy.
The units of exchange in HL7® FHIR®1 are called resources. Their content is organized data formats like JSON or XML.
XML and JSON are very popular in all industries, web, apps and so on. So, in 2011 it was decided to use these formats as the way to package the healthcare information that would be exchanged with HL7® FHIR®1.
JSON uses key-value pairs to represent data, which means it pairs a name (the key) with a piece of information (the value).
XML uses tags (special words enclosed in angle brackets, like <ingredient> or <step>) to label and describe different pieces of information.
Example for a Patient-resource in json and xml2
More about JSON and XML in this learning unit.
Turtle is a third format that is used, but it is way less popular than xml and json.