[
    {
        "id": "3417e0c3-8e5d-47f4-9e09-c8ac56265d71",
        "scriptName": "v4 CAPTURE MOUTH REFERENCE",
        "findRegex": "/(\\[|<)Mouth_Reference(]|>)([\\s\\S]*?)\\1\\/Mouth_Reference\\2/gsmi",
        "replaceString": "<details class=\"collapsible\"><summary>GENERATED Mouth</summary>{{match}}</details>\n{{.Mouth = $3}}",
        "trimStrings": [],
        "placement": [
            2
        ],
        "disabled": true,
        "markdownOnly": true,
        "promptOnly": true,
        "runOnEdit": true,
        "substituteRegex": 0,
        "minDepth": null,
        "maxDepth": null
    },
    {
        "id": "e3a404a5-d7c0-4ae3-b068-8b0d460806e9",
        "scriptName": "v4 CAPTURE STOMACH REFERENCE",
        "findRegex": "/(\\[|<)Stomach_Reference(]|>)([\\s\\S]*?)\\1\\/Stomach_Reference\\2/gsmi",
        "replaceString": "<details class=\"collapsible\"><summary>GENERATED Stomach</summary>{{match}}</details>\n{{.Stomach = $3}}",
        "trimStrings": [],
        "placement": [
            2
        ],
        "disabled": true,
        "markdownOnly": true,
        "promptOnly": true,
        "runOnEdit": true,
        "substituteRegex": 0,
        "minDepth": null,
        "maxDepth": null
    },
    {
        "id": "597b45bc-5340-46c8-854e-eec11d0af419",
        "scriptName": "v4 CAPTURE INTESTINES REFERENCE",
        "findRegex": "/(\\[|<)Intestines_Reference(]|>)([\\s\\S]*?)\\1\\/Intestines_Reference\\2/gsmi",
        "replaceString": "<details class=\"collapsible\"><summary>GENERATED Intestines</summary>{{match}}</details>\n{{.Intestines = $3}}",
        "trimStrings": [],
        "placement": [
            2
        ],
        "disabled": true,
        "markdownOnly": true,
        "promptOnly": true,
        "runOnEdit": true,
        "substituteRegex": 0,
        "minDepth": null,
        "maxDepth": null
    },
    {
        "id": "22893913-677b-47bc-a658-4c47562affb9",
        "scriptName": "v4 SETUP",
        "findRegex": "{{if .FRAMEWORKCONFIRM}}/<setup>.*<\\/setup>/imsg{{else}}/(?<=<setup>[\\s\\S]*?)^(GASTROTYPE|SUBJECT|SCALE|INGESTION|PROCESSING|EXPULSION|RECTUM)[\\s:]+([\\s\\S]*?)(?=\\s*^(?:GASTROTYPE|SUBJECT|SCALE|INGESTION|PROCESSING|EXPULSION|RECTUM|<\\/setup>))(?=[\\s\\S]*?<\\/setup>)/gism{{/if}}",
        "replaceString": "{{if .FRAMEWORKCONFIRM}}\n{{trim}}\n{{else}}\n{{.$1 = $2}}{{if .SUBJECT}}{{if .GASTROTYPE}}{{if .SCALE}}{{if .INGESTION}}{{if .PROCESSING}}{{if .EXPULSION}}{{if .RECTUM}}{{.FRAMEWORKCONFIRM = Framework created for {{.SUBJECT}}!}}{{/if}}{{/if}}{{/if}}{{/if}}{{/if}}{{/if}}{{/if}}\n{{/if}}",
        "trimStrings": [],
        "placement": [
            1,
            2
        ],
        "disabled": true,
        "markdownOnly": false,
        "promptOnly": true,
        "runOnEdit": true,
        "substituteRegex": 1,
        "minDepth": null,
        "maxDepth": null
    },
    {
        "id": "322f1f87-44e8-4d5c-88fa-3179e65f5f1b",
        "scriptName": "v4 SNAPSHOT2",
        "findRegex": "/(?<=<Simulation>[\\s\\S]*?)^(DATE|PROGRESSION|PROSPECTS|CONTENTS)[\\s:]+([\\s\\S]*?)(?=\\s*^(?:DATE|PROGRESSION|PROSPECTS|CONTENTS|<\\/Simulation>))(?=[\\s\\S]*?<\\/Simulation>)/gmi",
        "replaceString": "{{match}}{{.$1 = $2}}\n{{if .DATE}}\n{{if .PROSPECTS}}\n{{.Mes = <snapshot>\n{{.SUBJECT}}'s digestive system as of {{.DATE}}.\nProspects: {{.PROSPECTS}}\n\nContents: {{.CONTENTS}}\n</snapshot>}}\n{{/if}}\n{{/if}}",
        "trimStrings": [],
        "placement": [
            2
        ],
        "disabled": true,
        "markdownOnly": true,
        "promptOnly": true,
        "runOnEdit": true,
        "substituteRegex": 1,
        "minDepth": null,
        "maxDepth": null
    },
    {
        "id": "a98f1e5c-e56e-428b-af80-b97a0860b0c3",
        "scriptName": "v4 COLLAPSE SIM/SPATIAL/DECISION",
        "findRegex": "/(\\[|<)(Simulation|Spatial|decision)(]|>)([\\s\\S]*?)\\1\\/\\2\\3/igm",
        "replaceString": "<details class=\"collapsible\"><summary>$2</summary>\n$4\n</details>",
        "trimStrings": [],
        "placement": [
            2
        ],
        "disabled": true,
        "markdownOnly": true,
        "promptOnly": false,
        "runOnEdit": true,
        "substituteRegex": 0,
        "minDepth": null,
        "maxDepth": null
    },
    {
        "id": "620c64d3-7f96-4537-8163-12c65d1c8f34",
        "scriptName": "v4 FIND DECISION",
        "findRegex": "/<decision\\b[^>]*>(?:(?=[\\s\\S]*?(?:^|\\r?\\n)[ \\t]*(?:(?:DECISION|ACTION):?[ \\t]*)?\\[?\\b(Stomach|Mouth|Intestines|None)\\b\\]?)|)(?:(?=[\\s\\S]*?(?:^|\\r?\\n)[ \\t]*\\[?(YES|NO)\\]?[.!]?(?:[ \\t]*[-–—:(][^\\r\\n]*)?[ \\t]*(?=\\r?\\n|$))|)(?:(?=[\\s\\S]*?(?:^|\\r?\\n)[ \\t]*SPATIAL\\b:?[ \\t]*([\\s\\S]*?)(?=\\s*(?:^|\\r?\\n)[ \\t]*(?:(?:DECISION|ACTION)\\b|(?:Stomach|Mouth|Intestines|None|YES|NO|SPATIAL)\\b|<\\/decision>)))|)[\\s\\S]*?<\\/decision>/gi",
        "replaceString": "{{match}}{{.DECISION = $1}}{{.YN = $2}}{{.SPATIAL = $3}}",
        "trimStrings": [],
        "placement": [
            1,
            2
        ],
        "disabled": true,
        "markdownOnly": true,
        "promptOnly": true,
        "runOnEdit": true,
        "substituteRegex": 1,
        "minDepth": null,
        "maxDepth": null
    },
    {
        "id": "6df0c3ec-07bb-4a0c-8ed9-8e277e5c4d28",
        "scriptName": "v4 DELETE DECISION",
        "findRegex": "/(\\[|<)(simulation|spatial|observed|decision|setup|details|mouth_reference|stomach_reference|intestines_reference)(?:.*?)(]|>)([\\s\\S]*?)\\1\\/\\2\\3/gis",
        "replaceString": "",
        "trimStrings": [],
        "placement": [
            1,
            2
        ],
        "disabled": true,
        "markdownOnly": false,
        "promptOnly": true,
        "runOnEdit": true,
        "substituteRegex": 0,
        "minDepth": null,
        "maxDepth": null
    }
]