{
  "resourceType" : "PlanDefinition",
  "id" : "cpg-common-registration",
  "meta" : {
    "profile" : ["http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-workflowdefinition",
    "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-computableplandefinition"]
  },
  "language" : "en",
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <table class=\"narrative-table\">\n    <tbody>\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Metadata</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">PlanDefinition - CPG Common Registration</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Version</th>\n\n\n\n<td class=\"content-container\">2.0.0</td>\n\n\n</tr>\n\n\n\n\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Identifier</th>\n\n\n\n<td class=\"content-container\">urn:oid:2.16.840.1.113883.4.642.40.48.34.37</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Experimental</th>\n\n\n\n<td class=\"content-container\">true</td>\n\n\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Jurisdiction</th>\n\n\n\n<td class=\"content-container\">\n    World\n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Steward (Publisher)</th>\n\n\n\n<td class=\"content-container\">HL7 International / Clinical Decision Support</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Steward Contact</th>\n\n\n\n<td class=\"content-container\">HL7 International / Clinical Decision Support</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\"><div><p>Plan for registering patient</p>\n</div></td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Copyright</th>\n\n\n\n<td class=\"content-container\"><div><p>© WHO 2019+.</p>\n</div></td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n\n<td class=\"content-container\">\n    Workflow Definition\n\n\n</td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Action</th>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Registration</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Registration</td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Code</th>\n\n\n\n<td class=\"content-container\">\n    registration from <a href=\"CodeSystem-cpg-common-process-cs.html\">http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-process-cs</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n  \n    \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action Title: Registration)</th>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Gather identifying information</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Gather identifying information</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Output Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: QuestionnaireResponse\n    <br/>\n   \n   \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Definition</th>\n\n\n\n<td class=\"content-container\"><a href=\"Questionnaire-cpg-common-identity.html\">CPG Common Questionnaire - Identifying information</a></td>\n\n\n</tr>\n\n\n\n\n\n    \n  \n    \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action Title: Registration)</th>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Patient match</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Patient match</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: QuestionnaireResponse\n    <br/>\n   \n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: questionnaire</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      unknown: http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-identity (http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-identity)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Output Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Bundle\n    <br/>\n   \n   \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Definition</th>\n\n\n\n<td class=\"content-container\"><a href=\"http://hl7.org/fhir/OperationDefinition/Patient-match\">Find patient matches using MPI based logic</a></td>\n\n\n</tr>\n\n\n\n\n\n    \n  \n    \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action Title: Registration)</th>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Resolve patient match results</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Resolve patient match results</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Bundle\n    <br/>\n   \n   \n   \n  </td>\n</tr>\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Output Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Patient\n    <br/>\n   \n   \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Definition</th>\n\n\n\n<td class=\"content-container\"><a href=\"Questionnaire-cpg-common-resolve-patient-match.html\">CPG Common Questionnaire - Resolve Patient Match</a></td>\n\n\n</tr>\n\n\n\n\n\n    \n  \n    \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action Title: Registration)</th>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">New patient</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">New patient</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Condition</th>\n  <td class=\"content-container\">\n  <em>Kind</em>: Applicability\n  \n    <br/>\n    \n      \n      <em>Logic Definition</em>: <a href=\"null\">not exists %input i where i is Patient</a> \n    \n   \n  </td>\n</tr>\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Patient\n    <br/>\n   \n   \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n  \n    \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action Title: New patient)</th>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Gather patient information</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Gather patient information</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: QuestionnaireResponse\n    <br/>\n   \n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: questionnaire</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      unknown: http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-identity (http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-identity)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Output Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: QuestionnaireResponse\n    <br/>\n   \n   \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Definition</th>\n\n\n\n<td class=\"content-container\"><a href=\"Questionnaire-cpg-common-patient-profile.html\">CPG Common Questionnaire - Patient information</a></td>\n\n\n</tr>\n\n\n\n\n\n    \n  \n    \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action Title: New patient)</th>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Record patient data</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Record patient data</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: QuestionnaireResponse\n    <br/>\n   \n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: questionnaire</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      unknown: http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-patient-profile (http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-patient-profile)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Output Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Patient\n    <br/>\n   \n   \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Definition</th>\n\n\n\n<td class=\"content-container\"><a href=\"http://hl7.org/fhir/uv/xver-r5.r4/0.1.0/CodeSystem-restful-interaction.html\">http://hl7.org/fhir/restful-interaction#create</a></td>\n\n\n</tr>\n\n\n\n\n\n    \n  \n\n    \n  \n    \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action Title: Registration)</th>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Existing patient</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Existing patient</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Condition</th>\n  <td class=\"content-container\">\n  <em>Kind</em>: Applicability\n  \n    <br/>\n    \n      \n      <em>Logic Definition</em>: <a href=\"null\">exists %input i where i is Patient</a> \n    \n   \n  </td>\n</tr>\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Patient\n    <br/>\n   \n   \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n  \n    \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action Title: Existing patient)</th>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Ensure patient information is up to date</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Ensure patient information is up to date</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: QuestionnaireResponse\n    <br/>\n   \n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: questionnaire</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      unknown: http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-identity (http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-identity)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Output Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: QuestionnaireResponse\n    <br/>\n   \n   \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Definition</th>\n\n\n\n<td class=\"content-container\"><a href=\"Questionnaire-cpg-common-patient-profile.html\">CPG Common Questionnaire - Patient information</a></td>\n\n\n</tr>\n\n\n\n\n\n    \n  \n    \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action Title: Existing patient)</th>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Record patient data</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Record patient data</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: QuestionnaireResponse\n    <br/>\n   \n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: questionnaire</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      unknown: http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-patient-profile (http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-patient-profile)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Output Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Patient\n    <br/>\n   \n   \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Definition</th>\n\n\n\n<td class=\"content-container\"><a href=\"http://hl7.org/fhir/uv/xver-r5.r4/0.1.0/CodeSystem-restful-interaction.html\">http://hl7.org/fhir/restful-interaction#update</a></td>\n\n\n</tr>\n\n\n\n\n\n    \n  \n\n    \n  \n    \n    \n      \n      \n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">PlanDefinition Sub-Action (Parent Action Title: Registration)</th>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Patient summary lookup</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\">Patient summary lookup</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Input Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Patient\n    <br/>\n   \n   \n   \n  </td>\n</tr>\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Output Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Bundle\n    <br/>\n   \n   \n   \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Definition</th>\n\n\n\n<td class=\"content-container\"><a href=\"OperationDefinition-cpg-common-patient-summary.html\">CPG Common Patient Summary</a></td>\n\n\n</tr>\n\n\n\n\n\n    \n  \n\n\n\n\n\n<tr>\n  <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.5.4 of the sample-content-ig Liquid templates</th>\n</tr>\n\n    </tbody>\n  </table>\n</div>"
  },
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
    "valueCode" : "shareable"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
    "valueCode" : "computable"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
    "valueCode" : "publishable"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "cds"
  }],
  "url" : "http://hl7.org/fhir/uv/cpg/PlanDefinition/cpg-common-registration",
  "identifier" : [{
    "system" : "urn:ietf:rfc:3986",
    "value" : "urn:oid:2.16.840.1.113883.4.642.40.48.34.37"
  }],
  "version" : "2.0.0",
  "name" : "PlanDefinition_CPG_Common_Registration",
  "title" : "PlanDefinition - CPG Common Registration",
  "type" : {
    "coding" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/plan-definition-type",
      "code" : "workflow-definition",
      "display" : "Workflow Definition"
    }]
  },
  "status" : "active",
  "experimental" : true,
  "date" : "2026-04-29T15:06:55+00:00",
  "publisher" : "HL7 International / Clinical Decision Support",
  "contact" : [{
    "name" : "HL7 International / Clinical Decision Support",
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/dss"
    }]
  }],
  "description" : "Plan for registering patient",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "code" : "001",
      "display" : "World"
    }]
  }],
  "copyright" : "© WHO 2019+.",
  "action" : [{
    "title" : "Registration",
    "description" : "Registration",
    "code" : [{
      "coding" : [{
        "system" : "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-process-cs",
        "code" : "registration"
      }]
    }],
    "participant" : [{
      "type" : "patient",
      "role" : {
        "coding" : [{
          "system" : "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-persona-cs",
          "code" : "C000"
        }]
      }
    },
    {
      "type" : "practitioner",
      "role" : {
        "coding" : [{
          "system" : "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-persona-cs",
          "code" : "W000",
          "display" : "Clerical support worker"
        }]
      }
    }],
    "action" : [{
      "title" : "Gather identifying information",
      "description" : "Gather identifying information",
      "output" : [{
        "type" : "QuestionnaireResponse"
      }],
      "participant" : [{
        "type" : "patient",
        "role" : {
          "coding" : [{
            "system" : "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-persona-cs",
            "code" : "C000"
          }]
        }
      }],
      "definitionCanonical" : "http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-identity"
    },
    {
      "title" : "Patient match",
      "description" : "Patient match",
      "input" : [{
        "type" : "QuestionnaireResponse",
        "codeFilter" : [{
          "path" : "questionnaire",
          "code" : [{
            "system" : "urn:ietf:rfc:3986",
            "code" : "http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-identity"
          }]
        }]
      }],
      "output" : [{
        "type" : "Bundle"
      }],
      "participant" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-participantCapabilityStatement",
          "valueCanonical" : "http://hl7.org/fhir/uv/cpg/CapabilityStatement/cpg-common-patient-registry"
        }],
        "type" : "device"
      }],
      "definitionUri" : "http://hl7.org/fhir/OperationDefinition/Patient-match"
    },
    {
      "title" : "Resolve patient match results",
      "description" : "Resolve patient match results",
      "input" : [{
        "type" : "Bundle"
      }],
      "output" : [{
        "type" : "Patient"
      }],
      "participant" : [{
        "type" : "practitioner",
        "role" : {
          "coding" : [{
            "system" : "http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-common-persona-cs",
            "code" : "W000",
            "display" : "Clerical support worker"
          }]
        }
      }],
      "definitionCanonical" : "http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-resolve-patient-match"
    },
    {
      "title" : "New patient",
      "description" : "New patient",
      "condition" : [{
        "kind" : "applicability",
        "expression" : {
          "language" : "text/cql",
          "expression" : "not exists %input i where i is Patient"
        }
      }],
      "input" : [{
        "type" : "Patient"
      }],
      "action" : [{
        "title" : "Gather patient information",
        "description" : "Gather patient information",
        "input" : [{
          "type" : "QuestionnaireResponse",
          "codeFilter" : [{
            "path" : "questionnaire",
            "code" : [{
              "system" : "urn:ietf:rfc:3986",
              "code" : "http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-identity"
            }]
          }]
        }],
        "output" : [{
          "type" : "QuestionnaireResponse"
        }],
        "definitionCanonical" : "http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-patient-profile"
      },
      {
        "title" : "Record patient data",
        "description" : "Record patient data",
        "input" : [{
          "type" : "QuestionnaireResponse",
          "codeFilter" : [{
            "path" : "questionnaire",
            "code" : [{
              "system" : "urn:ietf:rfc:3986",
              "code" : "http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-patient-profile"
            }]
          }]
        }],
        "output" : [{
          "type" : "Patient"
        }],
        "participant" : [{
          "extension" : [{
            "url" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-participantCapabilityStatement",
            "valueCanonical" : "http://hl7.org/fhir/uv/cpg/CapabilityStatement/cpg-common-patient-registry"
          }],
          "type" : "device"
        }],
        "definitionUri" : "http://hl7.org/fhir/restful-interaction#create"
      }]
    },
    {
      "title" : "Existing patient",
      "description" : "Existing patient",
      "condition" : [{
        "kind" : "applicability",
        "expression" : {
          "language" : "text/cql",
          "expression" : "exists %input i where i is Patient"
        }
      }],
      "input" : [{
        "type" : "Patient"
      }],
      "action" : [{
        "title" : "Ensure patient information is up to date",
        "description" : "Ensure patient information is up to date",
        "input" : [{
          "type" : "QuestionnaireResponse",
          "codeFilter" : [{
            "path" : "questionnaire",
            "code" : [{
              "system" : "urn:ietf:rfc:3986",
              "code" : "http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-identity"
            }]
          }]
        }],
        "output" : [{
          "type" : "QuestionnaireResponse"
        }],
        "definitionCanonical" : "http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-patient-profile"
      },
      {
        "title" : "Record patient data",
        "description" : "Record patient data",
        "input" : [{
          "type" : "QuestionnaireResponse",
          "codeFilter" : [{
            "path" : "questionnaire",
            "code" : [{
              "system" : "urn:ietf:rfc:3986",
              "code" : "http://hl7.org/fhir/uv/cpg/Questionnaire/cpg-common-patient-profile"
            }]
          }]
        }],
        "output" : [{
          "type" : "Patient"
        }],
        "participant" : [{
          "extension" : [{
            "url" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-participantCapabilityStatement",
            "valueCanonical" : "http://hl7.org/fhir/uv/cpg/CapabilityStatement/cpg-common-patient-registry"
          }],
          "type" : "device"
        }],
        "definitionUri" : "http://hl7.org/fhir/restful-interaction#update"
      }]
    },
    {
      "title" : "Patient summary lookup",
      "description" : "Patient summary lookup",
      "input" : [{
        "type" : "Patient"
      }],
      "output" : [{
        "type" : "Bundle"
      }],
      "participant" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-participantCapabilityStatement",
          "valueCanonical" : "http://hl7.org/fhir/uv/cpg/CapabilityStatement/cpg-common-patient-registry"
        }],
        "type" : "device"
      }],
      "definitionUri" : "http://hl7.org/fhir/uv/cpg/OperationDefinition/cpg-common-patient-summary"
    }]
  }]
}