fhir-schemas
Version:
Schemas for Fast Healthcare Interoperability Resources.
51 lines • 1.82 kB
JSON
{
"schema": "http://json-schema.org/draft-04/schema#",
"$id": "http://hl7.org/fhir/json-schema/Binary",
"$ref": "#/definitions/Binary",
"description": "see http://hl7.org/fhir/json.html#schema for information about the FHIR Json Schemas",
"definitions": {
"Binary": {
"allOf": [
{
"$ref": "Resource#/definitions/Resource"
},
{
"description": "A binary resource can contain any content, whether text, image, pdf, zip archive, etc.",
"properties": {
"resourceType": {
"description": "This is a Binary resource",
"type": "string",
"enum": [
"Binary"
]
},
"contentType": {
"description": "MimeType of the binary content represented as a standard MimeType (BCP 13).",
"type": "string",
"pattern": "[^\\s]+([\\s]?[^\\s]+)*"
},
"_contentType": {
"description": "Extensions for contentType",
"$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element"
},
"securityContext": {
"description": "Treat this binary as if it was this other resource for access control purposes.",
"$ref": "http://hl7.org/fhir/json-schema/Reference#/definitions/Reference"
},
"content": {
"description": "The actual content, base64 encoded.",
"type": "string"
},
"_content": {
"description": "Extensions for content",
"$ref": "http://hl7.org/fhir/json-schema/Element#/definitions/Element"
}
},
"required": [
"resourceType"
]
}
]
}
}
}