{
  "resourceType": "StructureDefinition",
  "id": "appointment",
  "url": "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/appointment",
  "name": "PCareAppointment",
  "title": "P-Care Appointment",
  "status": "draft",
  "description": "P-Care union profile. Review the analysis workbook and audit report before publication.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Appointment",
  "baseDefinition": "http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/appointment-ca-core",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Appointment.meta",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.meta"
      },
      {
        "id": "Appointment.meta.profile",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.meta.profile"
      },
      {
        "id": "Appointment.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.text"
      },
      {
        "id": "Appointment.text.status",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.text.status"
      },
      {
        "id": "Appointment.text.div",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.text.div"
      },
      {
        "id": "Appointment.extension:class",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.extension",
        "sliceName": "class"
      },
      {
        "id": "Appointment.extension:AppointmentVirtualService",
        "path": "Appointment.extension",
        "sliceName": "AppointmentVirtualService",
        "max": "0"
      },
      {
        "id": "Appointment.extension:VirtualService",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.extension",
        "sliceName": "VirtualService",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/5.0/StructureDefinition/extension-Appointment.virtualService"
            ]
          }
        ]
      },
      {
        "id": "Appointment.identifier",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.identifier",
        "min": 1
      },
      {
        "id": "Appointment.identifier.system",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.identifier.system"
      },
      {
        "id": "Appointment.identifier.value",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.identifier.value"
      },
      {
        "id": "Appointment.status",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.status"
      },
      {
        "id": "Appointment.appointmentType.coding.system",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.appointmentType.coding.system"
      },
      {
        "id": "Appointment.appointmentType.coding.code",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.appointmentType.coding.code"
      },
      {
        "id": "Appointment.appointmentType.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.appointmentType.coding.display"
      },
      {
        "id": "Appointment.appointmentType.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.appointmentType.text"
      },
      {
        "id": "Appointment.description",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.description"
      },
      {
        "id": "Appointment.start",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.start"
      },
      {
        "id": "Appointment.created",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.created"
      },
      {
        "id": "Appointment.comment",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.comment"
      },
      {
        "id": "Appointment.patientInstruction",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.patientInstruction"
      },
      {
        "id": "Appointment.basedOn",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.basedOn",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/service-request"
            ]
          }
        ]
      },
      {
        "id": "Appointment.basedOn.reference",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.basedOn.reference"
      },
      {
        "id": "Appointment.basedOn.identifier",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.basedOn.identifier"
      },
      {
        "id": "Appointment.basedOn.identifier.use",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.basedOn.identifier.use",
        "min": 1
      },
      {
        "id": "Appointment.basedOn.identifier.system",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.basedOn.identifier.system",
        "min": 1
      },
      {
        "id": "Appointment.basedOn.identifier.value",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.basedOn.identifier.value",
        "min": 1
      },
      {
        "id": "Appointment.participant",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.participant"
      },
      {
        "id": "Appointment.participant.type",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.participant.type"
      },
      {
        "id": "Appointment.participant.actor",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.participant.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/patient",
              "http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/practitioner-role",
              "http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/location-ca-core"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant.actor.reference",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.participant.actor.reference"
      },
      {
        "id": "Appointment.participant.actor.identifier",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.participant.actor.identifier"
      },
      {
        "id": "Appointment.participant.actor.identifier.system",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "actor",
                "valueCanonical": "http://fhir.infoway-inforoute.ca/ca-core/ActorDefinition/consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.participant.actor.identifier.system",
        "min": 1
      },
      {
        "id": "Appointment.participant.actor.identifier.value",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.participant.actor.identifier.value",
        "min": 1
      },
      {
        "id": "Appointment.participant.required",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.participant.required"
      },
      {
        "id": "Appointment.participant.status",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.participant.status"
      },
      {
        "id": "Appointment.participant.period",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.participant.period"
      },
      {
        "id": "Appointment.participant.period.start",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.participant.period.start"
      },
      {
        "id": "Appointment.participant.period.end",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/obligation",
            "extension": [
              {
                "url": "name",
                "valueString": "pcare-server"
              },
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "code",
                "valueCode": "SHALL:no-error"
              },
              {
                "url": "documentation",
                "valueMarkdown": "P-Care server population, handling, and acceptance requirements for this element."
              }
            ]
          }
        ],
        "path": "Appointment.participant.period.end"
      }
    ]
  }
}