FHIR Implementation Guides
Working with Extensions

Aidbox Native Extensions

In addition to the FHIR extensions, Aidbox has its own implementation of extensions as native attributes.
First, you will need to create an Attribute resource.
Request
Response
1
PUT /Attribute/Observation.hrtakencontext
2
3
resourceType: Attribute
4
resource: {id: Observation, resourceType: Entity}
5
path: [hrtakencontext]
6
id: Observation.hrtakencontext
7
module: fhir-3.0.1
8
order: 100
9
type: {id: CodeableConcept, resourceType: Entity}
10
description: How it was done hrtakencontext
Copied!
Status: 201
1
resource: {id: Observation, resourceType: Entity}
2
path: [hrtakencontext]
3
id: Observation.hrtakencontext
4
module: fhir-3.0.1
5
order: 100
6
type: {id: CodeableConcept, resourceType: Entity}
7
meta: {lastUpdated: '2019-02-06T15:39:20.242Z', versionId: '120'}
8
resourceType: Attribute
9
description: How it was done hrtakencontext
Copied!
Now, you can create a resource using the native Aidbox extension.
Request
Response
1
PUT /Observation/sample-for-hrtakencontext
2
3
resourceType: Observation
4
id: sample-for-hrtakencontext
5
text: {div: "<div>\n Heart Rate Patient: Jane Smith (8867-4): 50 beats/minute\n\ </div>", status: generated}
6
hrtakencontext:
7
text: not set
8
coding:
9
- {code: '0', system: 'https://myhealth.aidbox.app/HeartRateMotionContext', display: not set}
10
value:
11
Quantity: {code: "/min", unit: "beats/minute", value: 50, system: "http://unitsofmeasure.org"}
12
status: final
13
subject: {display: Jane Smith}
14
category:
15
- text: Vital Signs
16
coding:
17
- {code: vital-signs, system: 'http://hl7.org/fhir/observation-category', display: Vital Signs}
18
code:
19
text: Heart rate
20
coding:
21
- {code: 8867-4, system: 'http://loinc.org', display: Heart rate}
22
effective: {dateTime: '2018-11-20T15:12:00.000+0300'}
Copied!
Status: 201
1
id: sample-for-hrtakencontext
2
hrtakencontext:
3
text: not set
4
coding:
5
- {code: '0', system: 'https://myhealth.aidbox.app/HeartRateMotionContext', display: not set}
6
value:
7
Quantity: {code: /min, unit: beats/minute, value: 50, system: 'http://unitsofmeasure.org'}
8
status: final
9
text: {div: "<div>\n Heart Rate Patient: Jane Smith (8867-4): 50 beats/minute \n\
10
</div>", status: generated}
11
subject: {display: Jane Smith}
12
meta: {lastUpdated: '2019-02-06T15:42:13.053Z', versionId: '122'}
13
category:
14
- text: Vital Signs
15
coding:
16
- {code: vital-signs, system: 'http://hl7.org/fhir/observation-category', display: Vital Signs}
17
resourceType: Observation
18
code:
19
text: Heart rate
20
coding:
21
- {code: 8867-4, system: 'http://loinc.org', display: Heart rate}
22
effective: {dateTime: '2018-11-20T15:12:00.000+0300'}
Copied!
Copy link