Time block settings - expanded FHIR

sample scenario :

Data Point Value unit
Time Block status True Boolean
Time Block Start Time 08:00:00 HH:MM:SS
Time Block End Time 11:59:00 HH:MM:SS
Hypo Limit 80 mg/dL
Hyper Limit 130 mg/dL
Hypo Lower Limit 54 mg/dL
Hypo Alert True Boolean
Hyper Alert True Boolean
Urgent Hypo Alert false Boolean

Note: Comments are provided in green in the JSON below

Below is an example JSON for the Careplan resource having Timeblock information in reduced FHIR format

Bolus Advice careplan

{
    "resourceType": "CarePlan", //FHIR resource type
    "id": "7fa36838-6730-44ae-aaba-fffc4c5551f5",
    "meta": { //Should be sent by Confidence saying which profile the below resource conforms to. 
		"profile": [
			"http://roche.com/fhir/rdc/StructureDefinition/careplan-bolus-advice"
		]
	},
	"identifier": [
		{
			"system": "http://roche.com/fhir/rdc/sid/careplan/confidence", //always same for resourceType careplan
			"value": "cf-bol-adv-cp-001" // Unique identifier from confidence
		}
	],
	"basedOn":  [
        {
            "reference": "CarePlan/careplan-dm-careplan-example", //To be added by facade - based on identifier value of careplan resource 
            "identifier": {
				"value": "cf-dmcp-001" // Unique identifier for related dm-careplan
			}
        }
    ],
    "partOf":  [
        {
            "reference": "CarePlan/careplan-dm-careplan-example",
            "identifier": {
				"value": "cf-dmcp-001" // Unique identifier for related dm-careplan
			}
        }
    ],
    "status": "active", //Status will be 'active' for careplan
    "intent": "plan", //intent will be 'plan' for careplan
    "category":  [ // Category will be added by facade as Bolus management plan
        {
            "coding":  [
                {
                    "system": "http://roche.com/fhir/rdc/cs",
                    "code": "bolus-management-careplan",
                    "display": "Bolus management plan"
                }
            ]
        }
    ],
    "title": "Bolus Advice Careplan", //title will be 'Bolus Advice Careplan' for careplan-target-ranges
    "extension":  [
        {
            "extension":  [
                {
                    "url": "TimeblockStatus",
                    "valueBoolean": true
                },
                {
                    "url": "startTime",
                    "valueTime": "08:00:00"
                },
                {
                    "url": "endTime",
                    "valueTime": "11:59:00"
                },
                {
                    "url": "LowerLimit",
                    "valueQuantity": {
                        "value": 80,
                        "unit": "mg/dL",
                        "system": "https://unitsofmeasure.org",// To be added by facade
                        "code": "mg/dL"// To be added by facade
                    }
                },
                {
                    "url": "UpperLimit",
                    "valueQuantity": {
                        "value": 130,
                        "unit": "mg/dL",
                        "system": "https://unitsofmeasure.org",// To be added by facade
                        "code": "mg/dL"// To be added by facade
                    }
                },
                {
                    "url": "UrgentLowerLimit",
                    "valueQuantity": {
                        "value": 54,
                        "unit": "mg/dL",
                        "system": "https://unitsofmeasure.org",// To be added by facade
                        "code": "mg/dL"// To be added by facade
                    }
                },
                {
                    "url": "HypoAlert",
                    "valueBoolean": true
                },
                {
                    "url": "HyperAlert",
                    "valueBoolean": true
                },
                {
                    "url": "UrgentHypoAlert",
                    "valueBoolean": false
                }
            ],
            
            "url": "http://roche.com/fhir/rdc/StructureDefinition/careplan-timeblock-options"
        },
        {
            "url": "http://roche.com/fhir/rdc/StructureDefinition/provenance-channel",
            "valueString": "<channel-name>" //To be added by facade - fill channel data
        },
        {
            "url": "http://roche.com/fhir/rdc/StructureDefinition/provenance-source",
            "valueString": "<source-name>"  //To be added by facade - fill source data
        }
    ],
    "subject": {
        "reference": "Patient/<patient reference>" // This value will be overwritten by the FHIR Server to put the fhir id of the user sending data from auth header
    }
}