{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "1EF70134-E6E8-4251-839E-C5A73DE32CAA",
    "name": "Microsoft Teams: critical lab value to on-call"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -55.032397408207345,
        "y": 5.442764578833696,
        "zoom": 0.86
      },
      "autoSave": false,
      "descriptions": {
        "flow": "When Healthie receives a lab result with a value the lab flagged critical, sends the on-call clinician a Teams card to acknowledge. No acknowledgment in 30 minutes: Twilio calls their phone with a short message. Still none 15 minutes later: the clinical lead gets the card and a call.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When Healthie receives a lab result with a value the lab flagged critical, sends the on-call clinician a Teams card to acknowledge. No acknowledgment in 30 minutes: Twilio calls their phone. Still none 15 minutes later: the clinical lead gets the card and a call.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "data-bucket",
          "isFirstElement": false,
          "blockDefinitionId": "data-bucket",
          "fieldKeys": {
            "acknowledged": "b6bc577f-8e3c-4f8c-9844-3eee1f9bd56f"
          },
          "position": {
            "x": 110,
            "y": 219
          }
        },
        "flowElementId": "4B3914EC-B798-4D14-A79F-B5F6591A3CCF",
        "groupId": null,
        "id": "21CD6FF0-94BD-4F9C-BD54-5E97D2DED522",
        "metaInfo": {
          "bucketName": "Default",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "fields": [
            {
              "name": "acknowledged",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "no"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "clock",
          "storeResult": true
        },
        "name": "Start the acknowledgment clock",
        "nextElementIds": [
          "DE6C7EC8-C5E1-4070-B3E7-B6DAE7B8E318"
        ],
        "nextGroupIds": [],
        "type": "DATA_BUCKET"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 877,
            "y": 819
          }
        },
        "flowElementId": "C6810CE7-C6D4-44E6-80E0-F209BEB03676",
        "groupId": null,
        "id": "A9D8ED6C-C7D2-4CF1-B124-9602904DEF17",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "4fd1e9f7-827e-49f1-8753-92498eb15ea8",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                      "label": "Default - acknowledged",
                      "subPathSegments": null,
                      "type": "EXECUTION_CONTEXT_PATH",
                      "value": "executionContext.dataBuckets.Default.acknowledged",
                      "valueSegments": [
                        {
                          "key": "executionContext",
                          "optional": false
                        },
                        {
                          "key": "dataBuckets",
                          "optional": false
                        },
                        {
                          "key": "Default",
                          "optional": false
                        },
                        {
                          "key": "acknowledged",
                          "optional": false
                        }
                      ]
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "yes"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "4fd1e9f7-827e-49f1-8753-92498eb15ea8"
            ]
          },
          "elseComponent": {
            "componentId": "EBC6563A-CDBA-42C4-9398-AF6F13A41369",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Acked after call",
          "storeResult": false,
          "thenComponent": null
        },
        "name": "Acknowledged after the call?",
        "nextElementIds": [
          "EBC6563A-CDBA-42C4-9398-AF6F13A41369"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the cards and the call Result"
          },
          "position": {
            "x": 509,
            "y": 219
          }
        },
        "flowElementId": "271CAAA9-A283-4053-90BB-C9D449664BDC",
        "groupId": null,
        "id": "D0C1468E-EC45-4260-84F1-FAC98D783959",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "patient",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Patient",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "3A4C89ED-1A6F-4541-853B-AB66ADDD7EB6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "flags",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Flags",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "1E37FE63-58D2-4ED7-8D11-1BC0A47F2FDC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "answerLink",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Answer link",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Answer link"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "executionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_ID",
                    "label": null,
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.executionId",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "executionId",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const fmt = (d) => { const m = /^(\\d{4})-(\\d{2})-(\\d{2})/.exec(d || ''); return m ? `${m[2]}/${m[3]}/${m[1]}` : (d || 'not on file'); };\nconst p = patient || {};\nconst name = p.full_name || [p.first_name, p.last_name].filter(Boolean).join(' ') || 'Patient';\nconst initials = [p.first_name, p.last_name].filter(Boolean).map((s) => String(s).trim().charAt(0).toUpperCase()).join(' ');\nconst chartUrl = `https://secure.gethealthie.com/users/${p.id || flags.patientId}`;\nconst ackLink = (who) => `${answerLink}?execution=${encodeURIComponent(executionId)}&${new URLSearchParams({ acknowledged: 'yes', by: who }).toString()}`;\nconst values = (flags.flagged || []).map((f) => ({ type: 'TextBlock', wrap: true, spacing: 'Small', text: `${f.critical ? '**' : ''}${f.test}: ${f.value}${f.units ? ' ' + f.units : ''}${f.critical ? '**' : ''}. Lab flag ${f.flag}${f.range ? ', lab range ' + f.range : ''}.` }));\nconst card = (heading, note, who) => ({\n  type: 'AdaptiveCard',\n  $schema: 'http://adaptivecards.io/schemas/adaptive-card.json',\n  version: '1.4',\n  body: [\n    { type: 'TextBlock', text: heading, weight: 'Bolder', size: 'Medium', color: 'Attention', wrap: true },\n    { type: 'FactSet', facts: [\n      { title: 'Patient', value: name },\n      { title: 'Born', value: fmt(p.dob) },\n      { title: 'Ordering provider', value: flags.orderer || 'not on the result' },\n      { title: 'Result received', value: flags.received || 'just now' },\n    ] },\n    { type: 'TextBlock', text: 'Values the lab flagged', weight: 'Bolder', wrap: true },\n    ...values,\n    { type: 'TextBlock', text: note, wrap: true, isSubtle: true },\n  ],\n  actions: [\n    { type: 'Action.OpenUrl', title: 'Acknowledge', url: ackLink(who) },\n    { type: 'Action.OpenUrl', title: 'Open the chart', url: chartUrl },\n  ],\n});\nconst say = `This is an automated alert. A critical lab result for patient ${initials || 'on your list'} needs attention. Please check Microsoft Teams now.`;\nreturn {\n  subject: `Critical lab value: ${name}`,\n  onCallCard: card('Critical lab value: please acknowledge', 'Press Acknowledge once you have this. If nobody does in 30 minutes, your phone is called.', 'on-call clinician'),\n  leadCard: card('Critical lab value with no acknowledgment', 'The on-call clinician has not acknowledged this after a Teams card and a phone call. Press Acknowledge once you have it.', 'clinical lead'),\n  voiceMessage: `${say} Again. ${say}`,\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Alert",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the cards and the call",
        "nextElementIds": [
          "21CD6FF0-94BD-4F9C-BD54-5E97D2DED522"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Posts an Adaptive Card to a team channel as the signed-in user, with optional text above it and an optional subject line. Use it for actionable notices such as an invoice exception card with Approve and Dispute buttons. Buttons must be Action.OpenUrl: Microsoft Graph supports only that action on a card a user posts, and other actions need a bot. Uses the same ChannelMessage.Send permission as Send Channel Message.",
          "elementId": "EXTENSION:::SHARED:::default:::microsoft-teams:::sendAdaptiveCardToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Send the card to the clinical lead Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::microsoft-teams:::sendAdaptiveCardToChannel",
          "legacyElementId": "JS###v1###MicrosoftTeamsService###sendAdaptiveCardToChannel",
          "methodName": "sendAdaptiveCardToChannel",
          "position": {
            "x": 491,
            "y": 810
          }
        },
        "flowElementId": "C931F69B-3FC4-4321-AA49-F08D7B075E2A",
        "groupId": null,
        "id": "EBC6563A-CDBA-42C4-9398-AF6F13A41369",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "teamId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Teams team ID",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Teams team ID"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Clinical lead channel ID",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Clinical lead channel ID"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "card",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Alert",
                    "subPathSegments": [
                      {
                        "key": "leadCard",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D0C1468E-EC45-4260-84F1-FAC98D783959"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "text",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "subject",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Alert",
                    "subPathSegments": [
                      {
                        "key": "subject",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D0C1468E-EC45-4260-84F1-FAC98D783959"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Send the card to the clinical lead', Error: The placeholder \"Teams team ID\" has no value",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendAdaptiveCardToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Lead post",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "microsoft-teams",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Send the card to the clinical lead",
        "nextElementIds": [
          "90CAA4B6-93D2-4E60-861E-2DDF61EEDCE8"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Pick out the lab's flags Result"
          },
          "position": {
            "x": 525,
            "y": 49
          }
        },
        "flowElementId": "01575030-8624-4AC4-8E57-966659BA73D9",
        "groupId": null,
        "id": "1E37FE63-58D2-4ED7-8D11-1BC0A47F2FDC",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "labResult",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Lab result",
                    "subPathSegments": [
                      {
                        "key": "lab_result",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "30B2DFE8-CA8A-4A55-AF59-927A90126CF0"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "patientId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Lab result",
                    "subPathSegments": [
                      {
                        "key": "patient_id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "30B2DFE8-CA8A-4A55-AF59-927A90126CF0"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "criticalCodes",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Critical flag codes",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Critical flag codes"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "// Reads the lab's own flags. It never judges a value itself.\n// Critical: the value's flag is one of the codes in the flow setting Critical flag codes,\n// or the lab's interpretation of the value or the result says critical.\nconst codes = String(criticalCodes || 'HH, LL, AA, C, CR, CRIT, PANIC').split(/[,;\\s]+/).map((s) => s.trim().toUpperCase()).filter(Boolean);\nconst r = labResult || {};\nconst saysCritical = (s) => String(s || '').toUpperCase().includes('CRITICAL');\nconst flagged = [];\nfor (const req of r.lab_observation_requests || []) {\n  for (const o of req.lab_observation_results || []) {\n    const flag = String(o.abnormal_flag || '').trim();\n    const interp = String(o.interpretation || '').toUpperCase();\n    const critical = (flag !== '' && codes.includes(flag.toUpperCase())) || saysCritical(interp);\n    const isFlagged = critical || (flag && !['N', 'NORMAL'].includes(flag.toUpperCase())) || o.is_abnormal === true || interp === 'ABNORMAL';\n    if (!isFlagged) continue;\n    const value = o.quantitative_result != null && o.quantitative_result !== '' ? o.quantitative_result : (o.qualitative_result || '');\n    flagged.push({ test: req.lab_analyte || 'Test', value: String(value), units: o.units || '', range: o.reference_range || '', flag: flag || (critical ? 'critical' : 'abnormal'), critical });\n  }\n}\nconst critical = flagged.filter((f) => f.critical);\nconst resultCritical = saysCritical(r.interpretation) || (r.status_flag && codes.includes(String(r.status_flag).trim().toUpperCase()));\nreturn {\n  hasCritical: critical.length > 0 || Boolean(resultCritical),\n  critical,\n  flagged,\n  patientId: String(patientId || (r.patient && r.patient.id) || ''),\n  orderer: (r.ordering_physician && r.ordering_physician.full_name) || '',\n  received: r.created_at || '',\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Flags",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Pick out the lab's flags",
        "nextElementIds": [
          "6609A60A-74DD-40BA-9D59-A26749616135"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Initiates a voice call to a specified phone number with custom instructions or TwiML.",
          "elementId": "EXTENSION:::SHARED:::default:::twilio:::makeCall",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Call the clinical lead Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::twilio:::makeCall",
          "legacyElementId": "JS###v1###TwilioService###makeCall",
          "methodName": "makeCall",
          "position": {
            "x": 151,
            "y": 810
          }
        },
        "flowElementId": "110F9B93-4D94-4444-8588-6C621CF084E7",
        "groupId": null,
        "id": "90CAA4B6-93D2-4E60-861E-2DDF61EEDCE8",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "to",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Clinical lead phone number",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Clinical lead phone number"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "from",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Twilio calling number",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Twilio calling number"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "url",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "voiceMessage",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Alert",
                    "subPathSegments": [
                      {
                        "key": "voiceMessage",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D0C1468E-EC45-4260-84F1-FAC98D783959"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "timeout",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 60
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Call the clinical lead', Error: The placeholder \"Clinical lead phone number\" has no value",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "makeCall",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Lead call",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "twilio",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Call the clinical lead",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": false,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 505,
            "y": 649
          }
        },
        "flowElementId": "2C4AC22F-2873-4C7F-936E-3B819E8EF88F",
        "groupId": null,
        "id": "883A3053-EF1C-4A78-8579-FFE50FCD11C7",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "Acknowledgment",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Wait for an acknowledgment",
        "nextElementIds": [
          "B58A5B5A-C1FF-489B-918C-BA41340D79A7"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Sends a reply to an existing message in a team channel as the signed-in user. Supports plain text or HTML content.",
          "elementId": "EXTENSION:::SHARED:::default:::microsoft-teams:::replyToChannelMessage",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Confirm in the Teams thread Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::microsoft-teams:::replyToChannelMessage",
          "legacyElementId": "JS###v1###MicrosoftTeamsService###replyToChannelMessage",
          "methodName": "replyToChannelMessage",
          "position": {
            "x": 1239,
            "y": 380
          }
        },
        "flowElementId": "F6B2CD42-07D0-4784-AFB3-40CC221AEDD6",
        "groupId": null,
        "id": "CC7B6C6B-F72F-4B9B-8CCC-4ABEA438E824",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "teamId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Teams team ID",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Teams team ID"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "On-call channel ID",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "On-call channel ID"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "On-call post",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "DE6C7EC8-C5E1-4070-B3E7-B6DAE7B8E318"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "contentType",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "text"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "content",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Acknowledged by the "
                  },
                  {
                    "id": "RESULT",
                    "label": "Acknowledgment",
                    "subPathSegments": [
                      {
                        "key": "by",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "883A3053-EF1C-4A78-8579-FFE50FCD11C7"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ". No more calls for this result."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Confirm in the Teams thread', Error: The placeholder \"Teams team ID\" has no value",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "replyToChannelMessage",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Confirmation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "microsoft-teams",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Confirm in the Teams thread",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "wait",
          "isFirstElement": false,
          "blockDefinitionId": "wait",
          "mode": "SIMPLE",
          "position": {
            "x": 533,
            "y": 519
          }
        },
        "flowElementId": "F5E4B4DA-5EAC-42E7-A3CC-AD4FD26E594E",
        "groupId": null,
        "id": "EA6721B4-2F57-4E5D-98E2-D71E59E6570D",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "delay": {
            "expression": [
              {
                "id": "NUMBER",
                "label": null,
                "type": "INPUT",
                "value": 1800
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": "DOUBLE"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "w30",
          "storeResult": true
        },
        "name": "Wait 30 minutes",
        "nextElementIds": [
          "97BC6399-5526-4D0D-BAFF-533F1BBED27B"
        ],
        "nextGroupIds": [],
        "type": "WAIT"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 889,
            "y": 49
          }
        },
        "flowElementId": "F09D6E04-525F-47C5-A07F-9E916BA4641B",
        "groupId": null,
        "id": "6609A60A-74DD-40BA-9D59-A26749616135",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "5aae51fc-b12e-427d-bbd7-f83ebee3d5b8",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Flags",
                      "subPathSegments": [
                        {
                          "key": "hasCritical",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "1E37FE63-58D2-4ED7-8D11-1BC0A47F2FDC"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "5aae51fc-b12e-427d-bbd7-f83ebee3d5b8"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Is critical",
          "storeResult": false,
          "thenComponent": {
            "componentId": "3A4C89ED-1A6F-4541-853B-AB66ADDD7EB6",
            "componentType": "ELEMENT"
          }
        },
        "name": "Critical flag on the result?",
        "nextElementIds": [
          "3A4C89ED-1A6F-4541-853B-AB66ADDD7EB6"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Initiates a voice call to a specified phone number with custom instructions or TwiML.",
          "elementId": "EXTENSION:::SHARED:::default:::twilio:::makeCall",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Call the on-call clinician Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::twilio:::makeCall",
          "legacyElementId": "JS###v1###TwilioService###makeCall",
          "methodName": "makeCall",
          "position": {
            "x": 1255,
            "y": 510
          }
        },
        "flowElementId": "48E70D8C-8CC4-4F42-8B72-D3150E25E018",
        "groupId": null,
        "id": "1D80FC62-531A-4A6C-AABC-FFD163BCF3BD",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "to",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "On-call phone number",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "On-call phone number"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "from",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Twilio calling number",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Twilio calling number"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "url",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "voiceMessage",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Alert",
                    "subPathSegments": [
                      {
                        "key": "voiceMessage",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D0C1468E-EC45-4260-84F1-FAC98D783959"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "timeout",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 60
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Call the on-call clinician', Error: The placeholder \"On-call phone number\" has no value",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "makeCall",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "On-call call",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "twilio",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Call the on-call clinician",
        "nextElementIds": [
          "FA90E152-6121-42B9-AC68-CB25771A4027"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 874,
            "y": 519
          }
        },
        "flowElementId": "6999764F-B7CF-46AB-84AD-E98158FBF8B1",
        "groupId": null,
        "id": "97BC6399-5526-4D0D-BAFF-533F1BBED27B",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "103c9e45-8d36-4ac2-ae02-69996c14fa68",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                      "label": "Default - acknowledged",
                      "subPathSegments": null,
                      "type": "EXECUTION_CONTEXT_PATH",
                      "value": "executionContext.dataBuckets.Default.acknowledged",
                      "valueSegments": [
                        {
                          "key": "executionContext",
                          "optional": false
                        },
                        {
                          "key": "dataBuckets",
                          "optional": false
                        },
                        {
                          "key": "Default",
                          "optional": false
                        },
                        {
                          "key": "acknowledged",
                          "optional": false
                        }
                      ]
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "yes"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "103c9e45-8d36-4ac2-ae02-69996c14fa68"
            ]
          },
          "elseComponent": {
            "componentId": "1D80FC62-531A-4A6C-AABC-FFD163BCF3BD",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Acked in 30",
          "storeResult": false,
          "thenComponent": null
        },
        "name": "Acknowledged in 30 minutes?",
        "nextElementIds": [
          "1D80FC62-531A-4A6C-AABC-FFD163BCF3BD"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Fires when a lab result is received in Healthie (lab_result.created), such as one from a connected lab, with the patient, the lab order, the result document and each value (test, value, units, reference range, abnormal flag). Result is empty when it could not be read; the IDs from the delivery are still there.",
          "elementId": "EXTENSION:::SHARED:::default:::healthie:::onLabResult",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::healthie:::onLabResult",
          "legacyElementId": null,
          "methodName": "onLabResult",
          "position": {
            "x": 133,
            "y": 40
          }
        },
        "flowElementId": "CBE0FC92-8A85-44F1-9821-7043DA7984C7",
        "groupId": null,
        "id": "30B2DFE8-CA8A-4A55-AF59-927A90126CF0",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onLabResult",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Lab result",
          "scope": "SINGLE_APP",
          "serviceId": "healthie",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "New lab result in Healthie",
        "nextElementIds": [
          "1E37FE63-58D2-4ED7-8D11-1BC0A47F2FDC"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "data-bucket",
          "isFirstElement": false,
          "blockDefinitionId": "data-bucket",
          "fieldKeys": {
            "acknowledged": "c49fcdda-297c-4bcf-9424-3d63779862f0"
          },
          "position": {
            "x": 901,
            "y": 649
          }
        },
        "flowElementId": "17767785-1CDB-4213-882E-B6FAEE5A21DD",
        "groupId": null,
        "id": "B58A5B5A-C1FF-489B-918C-BA41340D79A7",
        "metaInfo": {
          "bucketName": "Default",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "fields": [
            {
              "name": "acknowledged",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "yes"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "mark",
          "storeResult": true
        },
        "name": "Mark it acknowledged",
        "nextElementIds": [
          "CC7B6C6B-F72F-4B9B-8CCC-4ABEA438E824"
        ],
        "nextGroupIds": [],
        "type": "DATA_BUCKET"
      },
      {
        "clientMetadata": {
          "elementId": "wait",
          "isFirstElement": false,
          "blockDefinitionId": "wait",
          "mode": "SIMPLE",
          "position": {
            "x": 1262,
            "y": 819
          }
        },
        "flowElementId": "E0A676DE-211D-4808-A3B7-0AED2370C79F",
        "groupId": null,
        "id": "FA90E152-6121-42B9-AC68-CB25771A4027",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "delay": {
            "expression": [
              {
                "id": "NUMBER",
                "label": null,
                "type": "INPUT",
                "value": 900
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": "DOUBLE"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "w15",
          "storeResult": true
        },
        "name": "Wait 15 more minutes",
        "nextElementIds": [
          "A9D8ED6C-C7D2-4CF1-B124-9602904DEF17"
        ],
        "nextGroupIds": [],
        "type": "WAIT"
      },
      {
        "clientMetadata": {
          "notes": "Gets a patient's demographics from Healthie: name, date of birth, contact details, record ID, assigned provider and address.",
          "elementId": "EXTENSION:::SHARED:::default:::healthie:::getPatient",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get the patient's details Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::healthie:::getPatient",
          "legacyElementId": null,
          "methodName": "getPatient",
          "position": {
            "x": 895,
            "y": 210
          }
        },
        "flowElementId": "A7FF0610-1D6C-4668-B3BB-87B906ACCB6E",
        "groupId": null,
        "id": "3A4C89ED-1A6F-4541-853B-AB66ADDD7EB6",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "patientId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Flags",
                    "subPathSegments": [
                      {
                        "key": "patientId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "1E37FE63-58D2-4ED7-8D11-1BC0A47F2FDC"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getPatient",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Patient",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "healthie",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get the patient's details",
        "nextElementIds": [
          "D0C1468E-EC45-4260-84F1-FAC98D783959"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Posts an Adaptive Card to a team channel as the signed-in user, with optional text above it and an optional subject line. Use it for actionable notices such as an invoice exception card with Approve and Dispute buttons. Buttons must be Action.OpenUrl: Microsoft Graph supports only that action on a card a user posts, and other actions need a bot. Uses the same ChannelMessage.Send permission as Send Channel Message.",
          "elementId": "EXTENSION:::SHARED:::default:::microsoft-teams:::sendAdaptiveCardToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Send the card to on-call Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::microsoft-teams:::sendAdaptiveCardToChannel",
          "legacyElementId": "JS###v1###MicrosoftTeamsService###sendAdaptiveCardToChannel",
          "methodName": "sendAdaptiveCardToChannel",
          "position": {
            "x": 138,
            "y": 510
          }
        },
        "flowElementId": "91503065-F97C-4AE1-A431-A15B51F1AB17",
        "groupId": null,
        "id": "DE6C7EC8-C5E1-4070-B3E7-B6DAE7B8E318",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "teamId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Teams team ID",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Teams team ID"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "On-call channel ID",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "On-call channel ID"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "card",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Alert",
                    "subPathSegments": [
                      {
                        "key": "onCallCard",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D0C1468E-EC45-4260-84F1-FAC98D783959"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "text",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "subject",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Alert",
                    "subPathSegments": [
                      {
                        "key": "subject",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D0C1468E-EC45-4260-84F1-FAC98D783959"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Send the card to on-call', Error: The placeholder \"Teams team ID\" has no value",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendAdaptiveCardToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "On-call post",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "microsoft-teams",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Send the card to on-call",
        "nextElementIds": [
          "EA6721B4-2F57-4E5D-98E2-D71E59E6570D",
          "883A3053-EF1C-4A78-8579-FFE50FCD11C7"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "30B2DFE8-CA8A-4A55-AF59-927A90126CF0",
    "groups": [],
    "id": "DB7391C3-E504-4226-8F8A-D3EE8536C6FC",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
        "valid": false
      },
      "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
      "executionStaticData": [
        {
          "description": "The URL of the block Wait for an acknowledgment. The Acknowledge buttons open it.",
          "error": null,
          "name": "Answer link",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The team that holds the on-call and clinical lead channels.",
          "error": null,
          "name": "Teams team ID",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The Teams channel the on-call clinician watches.",
          "error": null,
          "name": "On-call channel ID",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The Teams channel the clinical lead watches.",
          "error": null,
          "name": "Clinical lead channel ID",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The on-call clinician's phone, in +1 format. Change it when the rotation changes.",
          "error": null,
          "name": "On-call phone number",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The clinical lead's phone, in +1 format.",
          "error": null,
          "name": "Clinical lead phone number",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "Your Twilio number the calls come from, in +1 format.",
          "error": null,
          "name": "Twilio calling number",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The abnormal flag codes your labs print for a critical value, separated by commas. A value whose flag is one of these, or whose interpretation says critical, starts the escalation.",
          "error": null,
          "name": "Critical flag codes",
          "type": "STRING",
          "value": ""
        }
      ],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-12-02T03:33:24.607Z"
}
