Skip to content

Pathways on FHIR Example

blangley28 edited this page Sep 8, 2020 · 1 revision

Early Stage HER2+ Breast Cancer Pathway Example

Pathway

Screen Shot 2020-09-08 at 2 47 31 PM

CPG Representation

{
  "id": "PathwayBundle001",
  "resourceType": "Bundle",
  "type": "transaction",
  "entry": [
    {
      "fullUrl": "http://pathway.com/Rec001",
      "resource": {
        "id": "Rec001",
        "title": "Early Stage HER2+ Pathway (draft)",
        "resourceType": "PlanDefinition",
        "meta": {
          "profile": [
            "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition"
          ]
        },
        "action": [
          {
            "id": "Actn001",
            "title": "Chemotherapy TCH AC + TH",
            "description": "Action for Chemotherapy TCH AC + TH",
            "definitionCanonical": "http://pathway.com/Act001",
            "condition": [
              {
                "kind": "applicability",
                "expression": {
                  "language": "text/cql",
                  "expression": "N+"
                }
              }
            ],
            "relatedAction": [
              {
                "actionId": "Actn005",
                "relationship": "before-start"
              }
            ]
          },
          {
            "id": "Actn002",
            "title": "Tumor Size",
            "description": "Branch based on Tumor Size",
            "condition": [
              {
                "kind": "applicability",
                "expression": {
                  "language": "text/cql",
                  "expression": "N0"
                }
              }
            ],
            "action": [
              {
                "id": "Actn003",
                "title": "Chemotherapy TH Weekly",
                "description": "Action for Chemotherapy TH Weekly",
                "definitionCanonical": "http://pathway.com/Act002",
                "condition": [
                  {
                    "kind": "applicability",
                    "expression": {
                      "language": "text/cql",
                      "expression": "T <= 2cm"
                    }
                  }
                ],
                "relatedAction": [
                  {
                    "actionId": "Actn006",
                    "relationship": "before-start"
                  }
                ]
              },
              {
                "id": "Actn004",
                "title": "Chemotherapy TCH AC + TH",
                "description": "Action for Chemotherapy TCH AC + TH",
                "definitionCanonical": "http://pathway.com/Act001",
                "condition": [
                  {
                    "kind": "applicability",
                    "expression": {
                      "language": "text/cql",
                      "expression": "T > 2cm"
                    }
                  }
                ],
                "relatedAction": [
                  {
                    "actionId": "Actn007",
                    "relationship": "before-start"
                  }
                ]
              }
            ]
          },
          {
            "id": "Actn005",
            "title": "Post-Chemotherapy Trastuzumab",
            "description": "Action for Post-Chemotherapy Trastuzumab",
            "definitionCanonical": "http://pathway.com/Act003",
            "relatedAction": [
              {
                "actionId": "Actn001",
                "relationship": "after-end"
              },
              {
                "actionId": "Actn008",
                "relationship": "before-start"
              }
            ]
          },
          {
            "id": "Actn006",
            "title": "Post-Chemotherapy Trastuzumab",
            "description": "Action for Post-Chemotherapy Trastuzumab",
            "definitionCanonical": "http://pathway.com/Act003",
            "relatedAction": [
              {
                "actionId": "Actn003",
                "relationship": "after-end"
              },
              {
                "actionId": "Actn009",
                "relationship": "before-start"
              }
            ]
          },
          {
            "id": "Actn007",
            "title": "Post-Chemotherapy Trastuzumab",
            "description": "Action for Post-Chemotherapy Trastuzumab",
            "definitionCanonical": "http://pathway.com/Act003",
            "relatedAction": [
              {
                "actionId": "Actn004",
                "relationship": "after-end"
              },
              {
                "actionId": "Actn010",
                "relationship": "before-start"
              }
            ]
          },
          {
            "id": "Actn008",
            "title": "Endocrine Therapy",
            "description": "Action for Endocrine Therapy",
            "definitionCanonical": "http://pathway.com/Act004",
            "condition": [
              {
                "kind": "applicability",
                "expression": {
                  "language": "text/cql",
                  "expression": "ERPositive"
                }
              }
            ],
            "relatedAction": [
              {
                "actionId": "Actn005",
                "relationShip": "after-end"
              }
            ]
          },
          {
            "id": "Actn009",
            "title": "Endocrine Therapy",
            "description": "Action for Endocrine Therapy",
            "definitionCanonical": "http://pathway.com/Act004",
            "condition": [
              {
                "kind": "applicability",
                "expression": {
                  "language": "text/cql",
                  "expression": "ERPositive"
                }
              }
            ],
            "relatedAction": [
              {
                "actionId": "Actn006",
                "relationShip": "after-end"
              }
            ]
          },
          {
            "id": "Actn010",
            "title": "Endocrine Therapy",
            "description": "Action for Endocrine Therapy",
            "definitionCanonical": "http://pathway.com/Act004",
            "condition": [
              {
                "kind": "applicability",
                "expression": {
                  "language": "text/cql",
                  "expression": "ERPositive"
                }
              }
            ],
            "relatedAction": [
              {
                "actionId": "Actn007",
                "relationShip": "after-end"
              }
            ]
          }
        ]
      },
      "request": {
        "method": "PUT",
        "url": "/PlanDefinition/Rec001"
      }
    },
    {
      "fullUrl": "http://pathway.com/Act001",
      "resource": {
        "id": "Act001",
        "resourceType": "ActivityDefinition",
        "meta": {
          "profile": [
            "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-publishableactivity"
          ]
        },
        "extenstion": [
          {
            "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability",
            "valueCode": "publishable"
          }
        ],
        "title": "Chemotherapy TCH AC + TH",
        "kind": "ServiceRequest",
        "productCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "367336001",
              "display": "Chemotherapy (procedure)"
            }
          ],
          "text": "Chemotherapy (procedure)"
        }
      },
      "request": {
        "method": "PUT",
        "url": "/ActivityDefinition/Act001"
      }
    },
    {
      "fullUrl": "http://pathway.com/Act002",
      "resource": {
        "id": "Act002",
        "resourceType": "ActivityDefinition",
        "meta": {
          "profile": [
            "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-publishableactivity"
          ]
        },
        "extenstion": [
          {
            "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability",
            "valueCode": "publishable"
          }
        ],
        "title": "Chemotherapy TH Weekly",
        "kind": "ServiceRequest",
        "productCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "367336001",
              "display": "Chemotherapy (procedure)"
            }
          ],
          "text": "Chemotherapy (procedure)"
        }
      },
      "request": {
        "method": "PUT",
        "url": "/ActivityDefinition/Act002"
      }
    },
    {
      "fullUrl": "http://pathway.com/Act003",
      "resource": {
        "id": "Act003",
        "resourceType": "ActivityDefinition",
        "meta": {
          "profile": [
            "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-publishableactivity"
          ]
        },
        "extenstion": [
          {
            "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability",
            "valueCode": "publishable"
          }
        ],
        "title": "Post-Chemotherapy Trastuzumab",
        "kind": "MedicationRequest",
        "productCodeableConcept": {
          "coding": [
            {
              "system": "http://www.nlm.nih.gov/research/umls/rxnorm",
              "code": "1922509",
              "display": "trastuzumab"
            }
          ],
          "text": "trastuzumab"
        }
      },
      "request": {
        "method": "PUT",
        "url": "/ActivityDefinition/Act003"
      }
    },
    {
      "fullUrl": "http://pathway.com/Act004",
      "resource": {
        "id": "Act004",
        "resourceType": "ActivityDefinition",
        "meta": {
          "profile": [
            "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-publishableactivity"
          ]
        },
        "extenstion": [
          {
            "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability",
            "valueCode": "publishable"
          }
        ],
        "title": "Endocrine Therapy",
        "kind": "ServiceRequest",
        "productCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "169413002",
              "display": "Hormone therapy (procedure)"
            }
          ],
          "text": "Hormone therapy (procedure)"
        }
      },
      "request": {
        "method": "PUT",
        "url": "/ActivityDefinition/Act004"
      }
    }
  ]
}