Example
StructureDefinition/operationoutcome-detectedIssue
(XML)
Raw
Turtle
XML
(+
(
canonical
form
+
also
see
Turtle/RDF
XML
Format
Specification
)
General
Person
Primary
Coverage
Example
OODetectedIssue
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
<http://hl7.org/fhir/Coverage/9876B1> a fhir:Coverage;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "9876B1"];
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "generated" ];
fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">A human-readable rendering of the coverage</div>"
];
fhir:Coverage.identifier [
fhir:index 0;
fhir:Identifier.system [ fhir:value "http://benefitsinc.com/certificate" ];
fhir:Identifier.value [ fhir:value "12345" ]
];
fhir:Coverage.status [ fhir:value "active"];
fhir:Coverage.type [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActCode" ];
fhir:Coding.code [ fhir:value "EHCPOL" ];
fhir:Coding.display [ fhir:value "extended healthcare" ]
]
];
fhir:Coverage.policyHolder [
fhir:link <http://benefitsinc.com/FHIR/Organization/CBI35>;
fhir:Reference.reference [ fhir:value "http://benefitsinc.com/FHIR/Organization/CBI35" ]
];
fhir:Coverage.subscriber [
fhir:link <http://hl7.org/fhir/Patient/4>;
fhir:Reference.reference [ fhir:value "Patient/4" ]
];
fhir:Coverage.beneficiary [
fhir:link <http://hl7.org/fhir/Patient/4>;
fhir:Reference.reference [ fhir:value "Patient/4" ]
];
fhir:Coverage.dependent [ fhir:value "0"];
fhir:Coverage.relationship [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.code [ fhir:value "self" ]
]
];
fhir:Coverage.period [
fhir:Period.start [ fhir:value "2011-05-23"^^xsd:date ];
fhir:Period.end [ fhir:value "2012-05-23"^^xsd:date ]
];
fhir:Coverage.payor [
fhir:index 0;
fhir:link <http://hl7.org/fhir/Organization/2>;
fhir:Reference.reference [ fhir:value "Organization/2" ]
];
fhir:Coverage.class [
fhir:index 0;
fhir:Coverage.class.type [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/coverage-class" ];
fhir:Coding.code [ fhir:value "group" ]
]
];
fhir:Coverage.class.value [ fhir:value "CB135" ];
fhir:Coverage.class.name [ fhir:value "Corporate Baker's Inc. Local #35" ]
], [
fhir:index 1;
fhir:Coverage.class.type [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/coverage-class" ];
fhir:Coding.code [ fhir:value "subgroup" ]
]
];
fhir:Coverage.class.value [ fhir:value "123" ];
fhir:Coverage.class.name [ fhir:value "Trainee Part-time Benefits" ]
], [
fhir:index 2;
fhir:Coverage.class.type [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/coverage-class" ];
fhir:Coding.code [ fhir:value "plan" ]
]
];
fhir:Coverage.class.value [ fhir:value "B37FC" ];
fhir:Coverage.class.name [ fhir:value "Full Coverage: Medical, Dental, Pharmacy, Vision, EHC" ]
], [
fhir:index 3;
fhir:Coverage.class.type [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/coverage-class" ];
fhir:Coding.code [ fhir:value "subplan" ]
]
];
fhir:Coverage.class.value [ fhir:value "P7" ];
fhir:Coverage.class.name [ fhir:value "Includes afterlife benefits" ]
], [
fhir:index 4;
fhir:Coverage.class.type [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/coverage-class" ];
fhir:Coding.code [ fhir:value "class" ]
]
];
fhir:Coverage.class.value [ fhir:value "SILVER" ];
fhir:Coverage.class.name [ fhir:value "Silver: Family Plan spouse only" ]
], [
fhir:index 5;
fhir:Coverage.class.type [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/coverage-class" ];
fhir:Coding.code [ fhir:value "subclass" ]
]
];
fhir:Coverage.class.value [ fhir:value "Tier2" ];
fhir:Coverage.class.name [ fhir:value "Low deductable, max $20 copay" ]
], [
fhir:index 6;
fhir:Coverage.class.type [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/coverage-class" ];
fhir:Coding.code [ fhir:value "sequence" ]
]
];
fhir:Coverage.class.value [ fhir:value "9" ]
], [
fhir:index 7;
fhir:Coverage.class.type [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/coverage-class" ];
fhir:Coding.code [ fhir:value "rxid" ]
]
];
fhir:Coverage.class.value [ fhir:value "MDF12345" ]
], [
fhir:index 8;
fhir:Coverage.class.type [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/coverage-class" ];
fhir:Coding.code [ fhir:value "rxbin" ]
]
];
fhir:Coverage.class.value [ fhir:value "987654" ]
], [
fhir:index 9;
fhir:Coverage.class.type [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/coverage-class" ];
fhir:Coding.code [ fhir:value "rxgroup" ]
]
];
fhir:Coverage.class.value [ fhir:value "M35PT" ]
], [
fhir:index 10;
fhir:Coverage.class.type [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/coverage-class" ];
fhir:Coding.code [ fhir:value "rxpcn" ]
]
];
fhir:Coverage.class.value [ fhir:value "234516" ]
], [
fhir:index 11;
fhir:Coverage.class.type [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/coverage-class" ];
fhir:Coding.code [ fhir:value "sequence" ]
]
];
fhir:Coverage.class.value [ fhir:value "9" ]
] .
<http://hl7.org/fhir/Patient/4> a fhir:Patient .
<http://hl7.org/fhir/Organization/2> a fhir:Organization .
# - ontology header ------------------------------------------------------------
<http://hl7.org/fhir/Coverage/9876B1.ttl> a owl:Ontology;
owl:imports fhir:fhir.ttl;
owl:versionIRI <http://build.fhir.org/Coverage/9876B1.ttl> .
# -------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="operationoutcome-detectedIssue"/>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
<valueCode value="fhir"/>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
<valueInteger value="1"/>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
<valueCode value="trial-use"/>
</extension>
<url value="http://hl7.org/fhir/StructureDefinition/operationoutcome-detectedIssue"/>
<identifier>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:oid:2.16.840.1.113883.4.642.5.1359"/>
</identifier>
<version value="5.0.0-snapshot3"/>
<name value="OODetectedIssue"/>
<title value="OperationOutcome Detected Clinical Issue"/>
<status value="draft"/>
<experimental value="false"/>
<date value="2014-01-31"/>
<publisher value="Health Level Seven, Inc. - [WG Name] WG"/>
<contact>
<telecom>
<system value="url"/>
<value value="http://hl7.org/special/committees/FHIR"/>
</telecom>
</contact>
<description value="A reference to a stored contraindication that is the basis for this issue. A recipient
can expect that the item referenced in this extension is being retained for record
keeping purposes."/>
<fhirVersion value="5.0.0"/>
<mapping>
<identity value="rim"/>
<uri value="http://hl7.org/v3"/>
<name value="RIM Mapping"/>
</mapping>
<kind value="complex-type"/>
<abstract value="false"/>
<context>
<type value="element"/>
<expression value="OperationOutcome.issue"/>
</context>
<type value="Extension"/>
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension"/>
<derivation value="constraint"/>
<snapshot>
<element id="Extension">
<path value="Extension"/>
<short value="Reference to a contra-indication that is the basis for this error"/>
<definition value="A reference to a stored contraindication that is the basis for this issue. A recipient
can expect that the item referenced in this extension is being retained for record
keeping purposes."/>
<comment value="Operation Outcome records are transient items that are returned in response to
specific interactions or operations. Contraindications are items that can be stored
in the patient's records as reasons that things were not done (or done). This extension
allows a transient operation outcome to refer to a persistent entry in the patient
record as the basis for the outcome."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Extension"/>
<min value="0"/>
<max value="*"/>
</base>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="false"/>
</element>
<element id="Extension.id">
<path value="Extension.id"/>
<representation value="xmlAttr"/>
<short value="Unique id for inter-element referencing"/>
<definition value="Unique id for the element within a resource (for internal references). This may
be any string value that does not contain spaces."/>
<min value="0"/>
<max value="1"/>
<base>
<path value="Element.id"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="id"/>
</extension>
<code value="http://hl7.org/fhirpath/System.String"/>
</type>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="n/a"/>
</mapping>
</element>
<element id="Extension.extension">
<path value="Extension.extension"/>
<slicing>
<discriminator>
<type value="value"/>
<path value="url"/>
</discriminator>
<description value="Extensions are always sliced by (at least) url"/>
<rules value="open"/>
</slicing>
<short value="Extension"/>
<definition value="An Extension"/>
<min value="0"/>
<max value="0"/>
<base>
<path value="Element.extension"/>
<min value="0"/>
<max value="*"/>
</base>
<type>
<code value="Extension"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<constraint>
<key value="ext-1"/>
<severity value="error"/>
<human value="Must have either extensions or value[x], not both"/>
<expression value="extension.exists() != value.exists()"/>
<source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
</element>
<element id="Extension.url">
<path value="Extension.url"/>
<representation value="xmlAttr"/>
<short value="identifies the meaning of the extension"/>
<definition value="Source of the definition for the extension code - a logical name or a URL."/>
<comment value="The definition may point directly to a computable or human-readable definition
of the extensibility codes, or it may be a logical URI as declared in some other
specification. The definition SHALL be a URI for the Structure Definition defining
the extension."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Extension.url"/>
<min value="1"/>
<max value="1"/>
</base>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
<valueUrl value="uri"/>
</extension>
<code value="http://hl7.org/fhirpath/System.String"/>
</type>
<fixedUri value="http://hl7.org/fhir/StructureDefinition/operationoutcome-detectedIssue"/>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
<element id="Extension.value[x]">
<path value="Extension.value[x]"/>
<short value="Value of extension"/>
<definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](
extensibility.html) for a list)."/>
<min value="1"/>
<max value="1"/>
<base>
<path value="Extension.value[x]"/>
<min value="0"/>
<max value="1"/>
</base>
<type>
<code value="Reference"/>
<targetProfile value="http://hl7.org/fhir/StructureDefinition/DetectedIssue"/>
</type>
<constraint>
<key value="ele-1"/>
<severity value="error"/>
<human value="All FHIR elements must have a @value or children"/>
<expression value="hasValue() or (children().count() > id.count())"/>
<source value="http://hl7.org/fhir/StructureDefinition/Element"/>
</constraint>
<isModifier value="false"/>
<isSummary value="false"/>
<mapping>
<identity value="rim"/>
<map value="N/A"/>
</mapping>
</element>
</snapshot>
<differential>
<element id="Extension">
<path value="Extension"/>
<short value="Reference to a contra-indication that is the basis for this error"/>
<definition value="A reference to a stored contraindication that is the basis for this issue. A recipient
can expect that the item referenced in this extension is being retained for record
keeping purposes."/>
<comment value="Operation Outcome records are transient items that are returned in response to
specific interactions or operations. Contraindications are items that can be stored
in the patient's records as reasons that things were not done (or done). This extension
allows a transient operation outcome to refer to a persistent entry in the patient
record as the basis for the outcome."/>
<min value="0"/>
<max value="1"/>
</element>
<element id="Extension.extension">
<path value="Extension.extension"/>
<max value="0"/>
</element>
<element id="Extension.url">
<path value="Extension.url"/>
<fixedUri value="http://hl7.org/fhir/StructureDefinition/operationoutcome-detectedIssue"/>
</element>
<element id="Extension.value[x]">
<path value="Extension.value[x]"/>
<min value="1"/>
<type>
<code value="Reference"/>
<targetProfile value="http://hl7.org/fhir/StructureDefinition/DetectedIssue"/>
</type>
</element>
</differential>
</
StructureDefinition
>
Usage
note:
every
effort
has
been
made
to
ensure
that
the
examples
are
correct
and
useful,
but
they
are
not
a
normative
part
of
the
specification.