This tutorial is deprecated. Since the 2405 release, using Aidbox in FHIRSchema mode is recommended, which is incompatible with zen or Entity/Attribute options.
First, you will need to create an Attribute resource.
PUT /Attribute/Observation.hrtakencontextresourceType:Attributeresource: {id:Observation,resourceType:Entity}path: [hrtakencontext]id:Observation.hrtakencontextmodule:fhir-3.0.1order:100type: {id:CodeableConcept,resourceType:Entity}description:How it was done hrtakencontext
Status: 201
resource: {id:Observation,resourceType:Entity}path: [hrtakencontext]id:Observation.hrtakencontextmodule:fhir-3.0.1order:100type: {id:CodeableConcept,resourceType:Entity}meta: {lastUpdated:'2019-02-06T15:39:20.242Z',versionId:'120'}resourceType:Attributedescription:How it was done hrtakencontext
Now, you can create a resource using the native Aidbox extension.
PUT /Observation/sample-for-hrtakencontextresourceType:Observationid:sample-for-hrtakencontexttext: {div:"<div>\n Heart Rate Patient: Jane Smith (8867-4): 50 beats/minute\n\ </div>",status:generated}hrtakencontext:text:not setcoding: - {code:'0',system:'https://myhealth.aidbox.app/HeartRateMotionContext',display:not set}value:Quantity: {code:"/min",unit:"beats/minute",value:50,system:"http://unitsofmeasure.org"}status:finalsubject: {display:Jane Smith}category: - text:Vital Signscoding: - {code:vital-signs,system:'http://hl7.org/fhir/observation-category',display:Vital Signs}code:text:Heart ratecoding: - {code:8867-4,system:'http://loinc.org',display:Heart rate}effective: {dateTime:'2018-11-20T15:12:00.000+0300'}