This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is a downloaded copy of the specification. For a full list of available versions, see the Directory of published versions
. Page versions: R5 R4B R4 R3
Attachment.shex
Raw ShEx
ShEx statement for Attachment
PREFIX fhir: <http://hl7.org/fhir/>
PREFIX fhirvs: <http://hl7.org/fhir/ValueSet/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
IMPORT <url.shex>
IMPORT <code.shex>
IMPORT <string.shex>
IMPORT <decimal.shex>
IMPORT <DataType.shex>
IMPORT <dateTime.shex>
IMPORT <integer64.shex>
IMPORT <positiveInt.shex>
IMPORT <base64Binary.shex>
# Content in a format defined elsewhere
<Attachment> EXTENDS @<DataType> CLOSED {
a [fhir:Attachment]?;
fhir:contentType @<code> AND
{fhir:v @fhirvs:mimetypes}?; # Mime type of the content, with
# charset etc.
fhir:language @<code> AND
{fhir:v @fhirvs:all-languages}?; # Human language of the content
# (BCP-47)
fhir:data @<base64Binary>?; # Data inline, base64ed
fhir:url @<url>?; # Uri where the data can be found
fhir:size @<integer64>?; # Number of bytes of content (if url
# provided)
fhir:hash @<base64Binary>?; # Hash of the data (sha-1, base64ed)
fhir:title @<string>?; # Label to display in place of the
# data
fhir:creation @<dateTime>?; # Date attachment was first created
fhir:height @<positiveInt>?; # Height of the image in pixels
# (photo/video)
fhir:width @<positiveInt>?; # Width of the image in pixels
# (photo/video)
fhir:frames @<positiveInt>?; # Number of frames if > 1 (photo)
fhir:duration @<decimal>?; # Length in seconds (audio / video)
fhir:pages @<positiveInt>?; # Number of printed pages
}
#---------------------- Value Sets ------------------------
# This value set includes all possible codes from BCP-47 (see http://tools.ietf.org/html/bcp47)
fhirvs:all-languages xsd:string #EXTERNAL
# This value set includes all possible codes from BCP-13 (see http://tools.ietf.org/html/bcp13)
fhirvs:mimetypes xsd:string #EXTERNAL
Usage note: every effort has been made to ensure that the
ShEx files are correct and useful, but they are not a normative part
of the specification.