Example
Contract/C-123
(Turtle)
Raw
JSON
Turtle
(
canonical
form
(+
also
see
Turtle/RDF
Format
Specification
)
Definition
for
Code
System
Process
Outcome
Codes
General
Contract
Example
{
"resourceType": "CodeSystem",
"id": "process-outcome",
"meta": {
"lastUpdated": "2019-10-24T11:53:00+11:00",
"profile": [
"http://hl7.org/fhir/StructureDefinition/shareablecodesystem"
]
},
"text": {
"status": "generated",
"div": "<div>!-- Snipped for Brevity --></div>"
},
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-ballot-status",
"valueString": "Informative"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger": 1
},
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode": "fm"
}
],
"url": "http://hl7.org/fhir/processoutcomecodes",
"identifier": {
"system": "urn:ietf:rfc:3986",
"value": "urn:oid:2.16.840.1.113883.4.642.1.678"
},
"version": "3.0.2",
"name": "Process Outcome Codes",
"status": "draft",
"experimental": true,
"publisher": "Financial Management",
"contact": [
{
"telecom": [
{
"system": "url",
"value": "http://hl7.org/fhir"
}
]
}
],
"description": "This value set includes sample Process Outcome codes.",
"copyright": "This is an example set.",
"caseSensitive": true,
"valueSet": "http://hl7.org/fhir/ValueSet/process-outcome",
"content": "complete",
"concept": [
{
"code": "complete",
"display": "Complete",
"definition": "The requested processing has completed."
},
{
"code": "pended",
"display": "Pended",
"definition": "The requested processing has been suspended."
},
{
"code": "error",
"display": "Error",
"definition": "The requested processing has terminated with some errors being found."
}
]
}
@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 -------------------------------------------------------------------
[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 "urn:uuid:3a48c68c-318d-4c68-8471-4a3c10fcb41b" ];
fhir:Coding.display [ 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" ]
]
]
]
];
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" ]
]
];
fhir:Contract.legallyBindingAttachment [
fhir:Attachment.contentType [ fhir:value "application/pdf" ];
fhir:Attachment.url [ fhir:value "http://www.aws3.com/storage/doc.pdf" ]
]] .
# - ontology header ------------------------------------------------------------
[a owl:Ontology;
owl:imports fhir:fhir.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.