{
  "resourceType": "StructureDefinition",
  "id": "POWER2DM-Encounter",
  "meta": {
    "versionId": "3",
    "lastUpdated": "2016-11-14T11:12:05.831+00:00"
  },
  "url": "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_Encounter",
  "version": "0.1",
  "name": "POWER2DM_Encounter",
  "display": "POWER2DM_Encounter",
  "status": "draft",
  "publisher": "SRDC Corp.",
  "date": "2016-11-29T21:00:00+00:00",
  "description": "Profile to represent Encounters in POWER2DM",
  "fhirVersion": "1.0.2",
  "kind": "resource",
  "constrainedType": "Encounter",
  "abstract": false,
  "base": "http://hl7.org/fhir/StructureDefinition/Encounter",
  "differential": {
    "element": [
      {
        "path": "Encounter",
        "type": [
          {
            "code": "Encounter"
          }
        ]
      },
      {
        "path": "Encounter.identifier",
        "max": "1"
      },
      {
        "path": "Encounter.statusHistory",
        "max": "1"
      },
      {
        "path": "Encounter.type",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "Types of encounters in POWER2DM",
          "valueSetReference": {
            "reference": "http://power2dm.eu/pds/ValueSet/pdm-encounter-types"
          }
        }
      },
      {
        "path": "Encounter.patient",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_Patient"
            ]
          }
        ]
      },
      {
        "path": "Encounter.patient.id",
        "representation": [
          "xmlAttr"
        ],
        "max": "0"
      },
      {
        "path": "Encounter.episodeOfCare",
        "max": "1"
      },
      {
        "path": "Encounter.incomingReferral",
        "max": "1"
      },
      {
        "path": "Encounter.participant",
        "min": 1,
        "max": "1"
      },
      {
        "path": "Encounter.participant.type",
        "max": "1"
      },
      {
        "path": "Encounter.participant.individual",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_Practitioner"
            ]
          }
        ]
      },
      {
        "path": "Encounter.appointment",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_Appointment"
            ]
          }
        ]
      },
      {
        "path": "Encounter.period",
        "min": 1
      },
      {
        "path": "Encounter.period.id",
        "representation": [
          "xmlAttr"
        ],
        "max": "0"
      },
      {
        "path": "Encounter.period.start",
        "min": 1
      },
      {
        "path": "Encounter.reason",
        "max": "1"
      },
      {
        "path": "Encounter.indication",
        "max": "1"
      },
      {
        "path": "Encounter.hospitalization",
        "max": "0"
      },
      {
        "path": "Encounter.location",
        "max": "0"
      },
      {
        "path": "Encounter.serviceProvider",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_Organization"
            ]
          }
        ]
      },
      {
        "path": "Encounter.partOf",
        "type": [
          {
            "code": "Reference",
            "profile": [
              "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM_Encounter"
            ]
          }
        ]
      }
    ]
  }
}