This
page
is
part
of
the
Continuous
Integration
Build
of
FHIR
Specification
(v4.0.1:
R4
-
Mixed
Normative
and
STU
)
in
it's
permanent
home
(it
will
always
(will
be
available
incorrect/inconsistent
at
this
URL).
The
current
version
which
supercedes
this
version
is
5.0.0
.
For
a
full
list
of
available
versions,
see
times).
See
the
Directory
of
published
versions
.
Page
versions:
R5
R4B
R4
R3
| Responsible Owner: Financial Management Work Group | Standards Status : Informative |
Compartments
:
|
Raw Turtle (+ also see Turtle/RDF Format Specification )
General Contract Example
@prefix fhir: <http://hl7.org/fhir/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource -------------------------------------------------------------------<http://hl7.org/fhir/Contract/C-123> a fhir:Contract; fhir:nodeRole fhir:treeRoot; fhir:Resource.id [ fhir:value "C-123"]; 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 contract</div>" ]; fhir:Contract.identifier [ fhir:index 0; fhir:Identifier.system [ fhir:value "http://happyvalley.com/contract" ]; fhir:Identifier.value [ fhir:value "12347" ] ]; fhir:Contract.term [ fhir:index 0; fhir:Contract.term.offer [ fhir:Contract.term.offer.text [ fhir:value "Can't refuse" ] ]; fhir:Contract.term.asset [ fhir:index 0; fhir:Contract.term.asset.type [ fhir:index 0; fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "urn:ietf:rfc:3986" ]; fhir:Coding.code [ fhir:value "RicardianContract" ] ] ]; fhir:Contract.term.asset.subtype [ fhir:index 0; fhir:CodeableConcept.text [ fhir:value "sample" ] ]; fhir:Contract.term.asset.period [ fhir:index 0; fhir:Period.start [ fhir:value "2017-06-01"^^xsd:date ] ]; fhir:Contract.term.asset.valuedItem [ fhir:index 0; fhir:Contract.term.asset.valuedItem.entityCodeableConcept [ fhir:CodeableConcept.text [ fhir:value "Ford Bobcat" ] ]; fhir:Contract.term.asset.valuedItem.identifier [ fhir:Identifier.system [ fhir:value "http://somewhere.motor-vehicle.com/vin" ]; fhir:Identifier.value [ fhir:value "XXSVT34-7665t952236" ] ]; fhir:Contract.term.asset.valuedItem.effectiveTime [ fhir:value "1995"^^xsd:gYear ]; fhir:Contract.term.asset.valuedItem.quantity [ fhir:Quantity.value [ fhir:value "1"^^xsd:decimal ] ]; fhir:Contract.term.asset.valuedItem.unitPrice [ fhir:Money.value [ fhir:value "200.00"^^xsd:decimal ]; fhir:Money.currency [ fhir:value "CAD" ] ]; fhir:Contract.term.asset.valuedItem.factor [ fhir:value "1.0"^^xsd:decimal ]; fhir:Contract.term.asset.valuedItem.points [ fhir:value "1.0"^^xsd:decimal ]; fhir:Contract.term.asset.valuedItem.net [ fhir:Money.value [ fhir:value "200.00"^^xsd:decimal ]; fhir:Money.currency [ fhir:value "CAD" ]<http://hl7.org/fhir/Contract/C-123> a fhir:Contract ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "C-123"] ; # fhir:text [ fhir:status [ fhir:v "generated" ] ; fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">A human-readable rendering of the contract</div>"^^rdf:XMLLiteral ] ] ; # fhir:identifier ( [ fhir:system [ fhir:v "http://happyvalley.com/contract"^^xsd:anyURI ; fhir:l <http://happyvalley.com/contract> ] ; fhir:value [ fhir:v "12347" ] ] ) ; # fhir:term ( [ fhir:offer [ fhir:text [ fhir:v "Can't refuse" ] ] ; fhir:asset ( [ fhir:type ( [ fhir:coding ( [ fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ; fhir:l <urn:ietf:rfc:3986> ] ; fhir:code [ fhir:v "urn:uuid:3a48c68c-318d-4c68-8471-4a3c10fcb41b" ] ; fhir:display [ fhir:v "RicardianContract" ] ] ) ] ) ; fhir:subtype ( [ fhir:text [ fhir:v "sample" ] ] ) ; fhir:period ( [ fhir:start [ fhir:v "2017-06-01"^^xsd:date ] ] ) ; fhir:valuedItem ( [ fhir:entity [ a fhir:CodeableConcept ; fhir:text [ fhir:v "Ford Bobcat" ] ] ; fhir:identifier [ fhir:system [ fhir:v "http://somewhere.motor-vehicle.com/vin"^^xsd:anyURI ; fhir:l <http://somewhere.motor-vehicle.com/vin> ] ; fhir:value [ fhir:v "XXSVT34-7665t952236" ] ] ; fhir:effectiveTime [ fhir:v "1995"^^xsd:gYear ] ; fhir:quantity [ fhir:value [ fhir:v "1"^^xsd:decimal ] ] ; fhir:unitPrice [ fhir:value [ fhir:v 200.00 ] ; fhir:currency [ fhir:v "CAD" ] ] ; fhir:factor [ fhir:v 1.0 ] ; fhir:points [ fhir:v 1.0 ] ; fhir:net [ fhir:value [ fhir:v 200.00 ] ; fhir:currency [ fhir:v "CAD" ] ] ] ) ] ) ] ) ; # fhir:rule ( [ fhir:content [ a fhir:Attachment ; fhir:contentType [ fhir:v "application/txt" ] ; fhir:url [ fhir:v "http://www.rfc-editor.org/bcp/bcp13.txt"^^xsd:anyURI ; fhir:l <http://www.rfc-editor.org/bcp/bcp13.txt> ] ]]; fhir:Contract.rule [ fhir:index 0; fhir:Contract.rule.contentAttachment [ fhir:Attachment.contentType [ fhir:value "application/txt" ]; fhir:Attachment.url [ fhir:value "http://www.rfc-editor.org/bcp/bcp13.txt" ]] ) ; # # <issued value="2014-08-17"/> # # <subject> # <reference value="http://www.somewhere.org/Patient/12345"/> # </subject> # # <type> # <coding> # <system value="http://terminology.hl7.org/CodeSystem/coverage-copay-type"/> # <code value="disclosure"/> # </coding> # </type> # # <subtype> # <coding> # <system value="http://terminology.hl7.org/CodeSystem/contractsubtypecodes"/> # <code value="disclosure-US"/> # </coding> # </subtype> # fhir:legallyBinding [ a fhir:Attachment ; fhir:contentType [ fhir:v "application/pdf" ] ; fhir:url [ fhir:v "http://www.aws3.com/storage/doc.pdf"^^xsd:anyURI ; fhir:l <http://www.aws3.com/storage/doc.pdf> ]]; fhir:Contract.legallyBindingAttachment [ fhir:Attachment.contentType [ fhir:value "application/pdf" ]; fhir:Attachment.url [ fhir:value "http://www.aws3.com/storage/doc.pdf" ] ] . # - ontology header ------------------------------------------------------------ <http://hl7.org/fhir/Contract/C-123.ttl> a owl:Ontology; owl:imports fhir:fhir.ttl; owl:versionIRI <http://build.fhir.org/Contract/C-123.ttl> .] . # # -------------------------------------------------------------------------------------
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.
FHIR
®©
HL7.org
2011+.
FHIR
Release
4
(Technical
Correction
#1)
(v4.0.1)
R6
hl7.fhir.core#6.0.0-ballot3
generated
on
Fri,
Nov
1,
2019
09:34+1100.
QA
Page
Wed,
Dec
17,
2025
09:53+0000.
Links:
Search
|
Version
History
|
Table
of
Contents
|
Credits
Glossary
|
QA
|
Compare
to
R3
R4
|
Compare
to
R5
|
Compare
to
Last
Ballot
|
|
Propose
a
change