"status": "draft"
"publisher": "Health Level Seven International (FHIR Infrastructure)"
"search": true
"code": "Device"
"resource": [
{
"code": "Communication",
"param": [
"sender",
"recipient"
],
"documentation": "The device used as the message sender and recipient"
},
{
"code": "CommunicationRequest",
"param": [
"sender",
"recipient"
],
"documentation": "The device used as the message sender and recipient"
}
]
"name": "EXAMPLE"
"title": "Base FHIR compartment definition for Device(example)"
"url": "http://hl7.org/fhir/CompartmentDefinition/example"
"jurisdiction": [
{
"coding": [
{
"code": "US",
"system": "urn:iso:std:iso:3166",
"display": "United States of America (the)"
}
]
}
]
"contact": [
{
"telecom": [
{
"system": "url",
"value": "http://hl7.org/fhir"
}
],
"name": "[string]"
}
]
"useContext": [
{
"valueCodeableConcept": {
"coding": [
{
"code": "Device",
"system": "http://hl7.org/fhir/resource-types"
}
]
},
"code": {
"code": "focus",
"system": "http://hl7.org/fhir/usage-context-type"
}
}
]
"purpose": "Provides an example of a FHIR compartment definition based on the Device resource type."
"date": "2017-02-24"
"experimental": true
"description": "The set of resources associated with a particular Device (example with Communication and CommunicationRequest resourses only)."
{
"status": "draft",
"publisher": "Health Level Seven International (FHIR Infrastructure)",
"search": true,
"code": "Device",
"resource": [
{
"code": "Communication",
"param": [
"sender",
"recipient"
],
"documentation": "The device used as the message sender and recipient"
},
{
"code": "CommunicationRequest",
"param": [
"sender",
"recipient"
],
"documentation": "The device used as the message sender and recipient"
}
],
"name": "EXAMPLE",
"title": "Base FHIR compartment definition for Device(example)",
"resourceType": "CompartmentDefinition",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: example</p><p><b>url</b>: <a>http://hl7.org/fhir/CompartmentDefinition/example</a></p><p><b>name</b>: EXAMPLE</p><p><b>title</b>: Base FHIR compartment definition for Device(example)</p><p><b>status</b>: draft</p><p><b>experimental</b>: true</p><p><b>date</b>: 24/02/2017</p><p><b>publisher</b>: Health Level Seven International (FHIR Infrastructure)</p><p><b>contact</b>: </p><p><b>description</b>: The set of resources associated with a particular Device (example with Communication and CommunicationRequest resourses only).</p><p><b>purpose</b>: Provides an example of a FHIR compartment definition based on the Device resource type.</p><p><b>useContext</b>: </p><p><b>jurisdiction</b>: United States of America (the) <span>(Details : {urn:iso:std:iso:3166 code 'US' = 'United States', given as 'United States of America (the)'})</span></p><p><b>code</b>: Device</p><p><b>search</b>: true</p><blockquote><p><b>resource</b></p><p><b>code</b>: Communication</p><p><b>param</b>: sender, recipient</p><p><b>documentation</b>: The device used as the message sender and recipient</p></blockquote><blockquote><p><b>resource</b></p><p><b>code</b>: CommunicationRequest</p><p><b>param</b>: sender, recipient</p><p><b>documentation</b>: The device used as the message sender and recipient</p></blockquote></div>"
},
"jurisdiction": [
{
"coding": [
{
"code": "US",
"system": "urn:iso:std:iso:3166",
"display": "United States of America (the)"
}
]
}
],
"url": "http://hl7.org/fhir/CompartmentDefinition/example",
"contact": [
{
"telecom": [
{
"system": "url",
"value": "http://hl7.org/fhir"
}
],
"name": "[string]"
}
],
"useContext": [
{
"valueCodeableConcept": {
"coding": [
{
"code": "Device",
"system": "http://hl7.org/fhir/resource-types"
}
]
},
"code": {
"code": "focus",
"system": "http://hl7.org/fhir/usage-context-type"
}
}
],
"purpose": "Provides an example of a FHIR compartment definition based on the Device resource type.",
"date": "2017-02-24",
"id": "example",
"experimental": true,
"description": "The set of resources associated with a particular Device (example with Communication and CommunicationRequest resourses only)."
}
{
"resourceType" : "CompartmentDefinition",
// from Resource: id, meta, implicitRules, and language
// from DomainResource: text, contained, extension, and modifierExtension
"url" : "<uri>", // R! Logical URI to reference this compartment definition (globally unique)
"name" : "<string>", // R! Name for this compartment definition (computer friendly)
"title" : "<string>", // Name for this compartment definition (human friendly)
"status" : "<code>", // R! draft | active | retired | unknown
"experimental" : <boolean>, // For testing purposes, not real usage
"date" : "<dateTime>", // Date this was last changed
"publisher" : "<string>", // Name of the publisher (organization or individual)
"contact" : [{ ContactDetail }], // Contact details for the publisher
"description" : "<markdown>", // Natural language description of the compartment definition
"purpose" : "<markdown>", // Why this compartment definition is defined
"useContext" : [{ UsageContext }], // Context the content is intended to support
"jurisdiction" : [{ CodeableConcept }], // Intended jurisdiction for compartment definition (if applicable)
"code" : "<code>", // R! Patient | Encounter | RelatedPerson | Practitioner | Device
"search" : <boolean>, // R! Whether the search syntax is supported
"resource" : [{ // How a resource is related to the compartment
"code" : "<code>", // R! Name of resource type
"param" : ["<string>"], // Search Parameter Name, or chained parameters
"documentation" : "<string>" // Additional documentation about the resource and compartment
}]
}
The following search parameters can be used to query CompartmentDefinition resources. Just submit them like so:
https://api.1up.health/fhir/stu3/CompartmentDefinition?query-param=queryvalue
Search Parameter | Field Type | Resource Fields Searched |
---|---|---|
code | text | code |
date | date | date |
description | text | description |
jurisdiction | text | jurisdiction |
name | text | name |
publisher | text | publisher |
resource | text | resource.code |
status | text | status |
title | text | title |
url | uri | url |