PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.cpg@0.1.0
    http://hl7.org/fhir/uv/cpg/PlanDefinition/cpg-common-registration
{
  "description": null,
  "_filename": "PlanDefinition-cpg-common-registration.json",
  "package_name": "hl7.fhir.uv.cpg",
  "date": "2019-05-15T00:00:00-04:00",
  "publisher": null,
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "display": "World"
    } ]
  } ],
  "name": "PlanDefinition_CPG_Common_Registration",
  "copyright": "© WHO 2019+.",
  "type": "{:coding [{:system \\\"http://terminology.hl7.org/CodeSystem/plan-definition-type\\\", :code \\\"workflow-definition\\\", :display \\\"Workflow Definition\\\"}]}",
  "experimental": null,
  "resourceType": "PlanDefinition",
  "title": "PlanDefinition - CPG Common Registration",
  "package_version": "0.1.0",
  "status": "draft",
  "id": "722083ff-c517-4c9d-ba53-6e653d240dec",
  "kind": null,
  "url": "http://hl7.org/fhir/uv/cpg/PlanDefinition/cpg-common-registration",
  "action": [ {
    "code": [ {
      "coding": [ {
        "code": "registration",
        "system": "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-process"
      } ]
    } ],
    "title": "Registration",
    "action": [ {
      "title": "Gather identifying information",
      "output": [ {
        "type": "QuestionnaireResponse"
      } ],
      "participant": [ {
        "role": {
          "coding": [ {
            "code": "C000",
            "system": "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-persona"
          } ]
        },
        "type": "patient"
      } ]
    }, {
      "input": [ {
        "type": "QuestionnaireResponse",
        "codeFilter": [ {
          "code": [ {
            "code": "http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-identity"
          } ],
          "path": "questionnaire"
        } ]
      } ],
      "title": "Patient match",
      "output": [ {
        "type": "Bundle"
      } ],
      "participant": [ {
        "type": "device",
        "extension": [ {
          "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-participantCapabilityStatement",
          "valueCanonical": "http://hl7.org/fhir/uv/cpg/CapabilityStatement/cpg-patient-registry"
        } ]
      } ]
    }, {
      "input": [ {
        "type": "Bundle"
      } ],
      "title": "Resolve patient match results",
      "output": [ {
        "type": "Patient"
      } ],
      "participant": [ {
        "role": {
          "coding": [ {
            "code": "W000",
            "system": "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-persona",
            "display": "Clerical support worker"
          } ]
        },
        "type": "practitioner"
      } ]
    }, {
      "input": [ {
        "type": "Patient"
      } ],
      "title": "New patient",
      "action": [ {
        "input": [ {
          "type": "QuestionnaireResponse",
          "codeFilter": [ {
            "code": [ {
              "code": "http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-identity"
            } ],
            "path": "questionnaire"
          } ]
        } ],
        "title": "Gather patient information",
        "output": [ {
          "type": "QuestionnaireResponse"
        } ]
      }, {
        "input": [ {
          "type": "QuestionnaireResponse",
          "codeFilter": [ {
            "code": [ {
              "code": "http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-patient-profile"
            } ],
            "path": "questionnaire"
          } ]
        } ],
        "title": "Record patient data",
        "output": [ {
          "type": "Patient"
        } ],
        "participant": [ {
          "type": "device",
          "extension": [ {
            "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-participantCapabilityStatement",
            "valueCanonical": "http://hl7.org/fhir/uv/cpg/CapabilityStatement/cpg-patient-registry"
          } ]
        } ]
      } ],
      "condition": [ {
        "kind": "applicability",
        "expression": {
          "language": "text/cql",
          "expression": "not exists %input i where i is Patient"
        }
      } ]
    }, {
      "input": [ {
        "type": "Patient"
      } ],
      "title": "Existing patient",
      "action": [ {
        "input": [ {
          "type": "QuestionnaireResponse",
          "codeFilter": [ {
            "code": [ {
              "code": "http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-identity"
            } ],
            "path": "questionnaire"
          } ]
        } ],
        "title": "Ensure patient information is up to date",
        "output": [ {
          "type": "QuestionnaireResponse"
        } ]
      }, {
        "input": [ {
          "type": "QuestionnaireResponse",
          "codeFilter": [ {
            "code": [ {
              "code": "http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-patient-profile"
            } ],
            "path": "questionnaire"
          } ]
        } ],
        "title": "Record patient data",
        "output": [ {
          "type": "Patient"
        } ],
        "participant": [ {
          "type": "device",
          "extension": [ {
            "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-participantCapabilityStatement",
            "valueCanonical": "http://hl7.org/fhir/uv/cpg/CapabilityStatement/cpg-patient-registry"
          } ]
        } ]
      } ],
      "condition": [ {
        "kind": "applicability",
        "expression": {
          "language": "text/cql",
          "expression": "exists %input i where i is Patient"
        }
      } ]
    }, {
      "input": [ {
        "type": "Patient"
      } ],
      "title": "Patient summary lookup",
      "output": [ {
        "type": "Bundle"
      } ],
      "participant": [ {
        "type": "device",
        "extension": [ {
          "url": "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-participantCapabilityStatement",
          "valueCanonical": "http://hl7.org/fhir/uv/cpg/CapabilityStatement/cpg-patient-registry"
        } ]
      } ]
    } ],
    "participant": [ {
      "role": {
        "coding": [ {
          "code": "C000",
          "system": "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-persona"
        } ]
      },
      "type": "patient"
    }, {
      "role": {
        "coding": [ {
          "code": "W000",
          "system": "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-persona",
          "display": "Clerical support worker"
        } ]
      },
      "type": "practitioner"
    } ]
  } ],
  "version": "0.1.0"
}