{
  "resourceType": "StructureDefinition",
  "id": "fpar-genEncounter",
  "url": "http://fhir.org/guides/hspc/StructureDefinition/fpar-genEncounter",
  "name": "FPAR General Encounter Profile",
  "status": "draft",
  "date": "2017-05-10",
  "publisher": "HSPC on behalf of FPAR",
  "contact": [
    {
      "telecom": [
        {
          "system": "other",
          "value": "http://healthcaresoa.org"
        }
      ]
    }
  ],
  "mapping": [
    {
      "identity": "qdm",
      "uri": "http://www.healthit.gov/quality-data-model",
      "name": "Quality Data Model"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Encounter",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Encounter",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Encounter:fpargeneralencounter",
        "path": "Encounter",
        "sliceName": "HSPCGeneralEncounter",
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "qdm",
            "map": "Patient Characteristic"
          }
        ]
      },
      {
        "id": "Encounter:fpargeneralencounter.extension:reasonCancelled",
        "path": "Encounter.extension",
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "preferred",
          "description": "A set of codes that describe why an individual's encounter has been done away with.",
          "valueSetReference": {
            "reference": "ValueSet/reasonCancelled"
          }
        }
      },
      {
        "id": "Encounter:fpargeneralencounter.extension:confidentiality",
        "path": "Encounter.extension",
        "sliceName": "Confidentiality",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "preferred",
          "description": "The set of values that describe the level of confidentiality for the patient encounter.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v2-0907"
          }
        }
      },
      {
        "id": "Encounter:fpargeneralencounter.extension:hospitalservice",
        "path": "Encounter.extension",
        "sliceName": "HospitalService",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "preferred",
          "description": "The particular healthcare specialty or care group responsible for the care of the patient during the encounter",
          "valueSetReference": {
            "reference": "http://fhir.org/guides/hspc/ValueSet/practitioner-providerPractitionerSpecialty"
          }
        }
      },
      {
        "id": "Encounter:fpargeneralencounter.extension:viplevel",
        "path": "Encounter.extension",
        "sliceName": "VipLevel",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "preferred",
          "description": "A set of codes that describe the sensitivity level of a patient's information",
          "valueSetReference": {
            "reference": "ValueSet/hspc-viplevel"
          }
        }
      },
      {
        "id": "Encounter:fpargeneralencounter.extension:ambulatorystatus",
        "path": "Encounter.extension",
        "sliceName": "AmbulatoryStatus",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "preferred",
          "description": "The codes that describe a patient's current level of ability to ambulate.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v2-0009"
          }
        }
      },
      {
        "id": "Encounter:fpargeneralencounter.extension:departedbytransportation",
        "path": "Encounter.extension",
        "sliceName": "DepartedByTransportation",
        "alias": [
          "Departed By Transportation"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "preferred",
          "description": "A set of codes that describe various means of transportation used to leave a location",
          "valueSetReference": {
            "reference": "ValueSet/departureTransportMode"
          }
        }
      },
      {
        "id": "Encounter:fpargeneralencounter.extension:arrivedbytransportation",
        "path": "Encounter.extension",
        "sliceName": "ArrivedByTransportation",
        "alias": [
          "Arrived By Transportation"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "preferred",
          "description": "A set of codes that describe various means of transportation used to arrive at a location",
          "valueSetReference": {
            "reference": "ValueSet/arrivalTransportMode"
          }
        }
      },
      {
        "id": "Encounter:fpargeneralencounter.extension:chiefcomplaintid",
        "path": "Encounter.extension",
        "sliceName": "ChiefComplaintId",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Encounter:fpargeneralencounter.extension:admitmedicationid",
        "path": "Encounter.extension",
        "sliceName": "AdmitMedicationId",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Encounter:fpargeneralencounter.extension:dischargemedicationid",
        "path": "Encounter.extension",
        "sliceName": "DischargeMedicationId",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Encounter:fpargeneralencounter.extension:communicationmode",
        "path": "Encounter.extension",
        "sliceName": "CommunicationMode",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "preferred",
          "description": "The set of codes that describe the means by which a patient communicates with others.",
          "valueSetReference": {
            "reference": "ValueSet/communicationMode"
          }
        }
      },
      {
        "id": "Encounter:fpargeneralencounter.extension:administrativeencounterid",
        "path": "Encounter.extension",
        "sliceName": "AdministrativeEncounterId",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Encounter:fpargeneralencounter.participant.extension:providerservice",
        "path": "Encounter.participant.extension",
        "sliceName": "ProviderService",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "preferred",
          "description": "The codes that represent the particular specialty or practice group that a provider is affiliated with for the given encounter",
          "valueSetReference": {
            "reference": "http://fhir.org/guides/hspc/ValueSet/practitioner-providerPractitionerSpecialty"
          }
        }
      },
      {
        "id": "Encounter:fpargeneralencounter.participant.individual",
        "path": "Encounter.participant.individual",
        "short": "Persons involved in the encounter other than the patient",
        "definition": "Persons involved in the encounter other than the patient.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://fhir.org/guides/hspc/StructureDefinition/hspc-practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "ROL-4"
          },
          {
            "identity": "rim",
            "map": ".role"
          },
          {
            "identity": "w5",
            "map": "who"
          }
        ]
      },
      {
        "id": "Encounter:fpargeneralencounter.period",
        "path": "Encounter.period",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Encounter.period",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Encounter:fpargeneralencounter.period.start",
        "path": "Encounter.period.start",
        "short": "The start time for the encounter",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Encounter.period.start",
          "min": 0,
          "max": "1"
        },
        "mapping": [
          {
            "identity": "LOINC",
            "map": "76427-4"
          }
        ]
      },
      {
        "id": "Encounter:fpargeneralencounter.length:lengthofstay",
        "path": "Encounter.length",
        "sliceName": "LengthOfStay",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": true,
          "rules": "open"
        },
        "alias": [
          "Length of stay"
        ],
        "min": 0,
        "max": "1",
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Encounter:fpargeneralencounter.length:lengthofstay.system",
        "path": "Encounter.length.system",
        "type": [
          {
            "code": "uri",
            "profile": "http://hl7.org/fhir/StructureDefinition/uri"
          }
        ],
        "fixedUri": "http://unitsofmeasure.org",
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Encounter:fpargeneralencounter.length:lengthofstay.code",
        "path": "Encounter.length.code",
        "type": [
          {
            "code": "code",
            "profile": "http://hl7.org/fhir/StructureDefinition/code"
          }
        ],
        "fixedCode": "d",
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Encounter:fpargeneralencounter.length:encounterlength",
        "path": "Encounter.length",
        "sliceName": "EncounterLength",
        "alias": [
          "EncounterLength"
        ],
        "min": 0,
        "max": "1",
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Encounter:fpargeneralencounter.length:encounterlength.system",
        "path": "Encounter.length.system",
        "type": [
          {
            "code": "uri",
            "profile": "http://hl7.org/fhir/StructureDefinition/uri"
          }
        ],
        "fixedUri": "http://unitsofmeasure.org",
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Encounter:fpargeneralencounter.length:encounterlength.code",
        "path": "Encounter.length.code",
        "type": [
          {
            "code": "code",
            "profile": "http://hl7.org/fhir/StructureDefinition/code"
          }
        ],
        "fixedCode": "min",
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Encounter:fpargeneralencounter.hospitalization.extension:preadmittestindicator",
        "path": "Encounter.hospitalization.extension",
        "sliceName": "PreAdmitTestIndicator",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "preferred",
          "description": "The set of values to indicate affirmative or negative",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/v2-0136"
          }
        }
      },
      {
        "id": "Encounter:fpargeneralencounter.hospitalization.admitSource",
        "path": "Encounter.hospitalization.admitSource",
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "example",
          "description": "The set of codes that describe where a patient came from for the current admission.",
          "valueSetReference": {
            "reference": "http://fhir.org/guides/hspc/ValueSet/admissionSource"
          }
        }
      },
      {
        "id": "Encounter:fpargeneralencounter.hospitalization.dietPreference",
        "path": "Encounter.hospitalization.dietPreference",
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "preferred",
          "description": "A set of codes that describe the kind of nutrition to be supplied to the patient.",
          "valueSetReference": {
            "reference": "http://fhir.org/guides/hspc/ValueSet/dietType"
          }
        }
      },
      {
        "id": "Encounter:fpargeneralencounter.hospitalization.specialArrangement",
        "path": "Encounter.hospitalization.specialArrangement",
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "preferred",
          "description": "A set of codes that describe any particular needs for a patient regarding this encounter.",
          "valueSetReference": {
            "reference": "http://fhir.org/guides/hspc/ValueSet/specialArrangement"
          }
        }
      },
      {
        "id": "Encounter:fpargeneralencounter.location",
        "path": "Encounter.location",
        "short": "List of locations where the patient has been",
        "definition": "List of locations where  the patient has been during this encounter.",
        "comment": "Virtual encounters can be recorded in the Encounter by specifying a location reference        to a location of type \"kind\" such as \"client's home\" and an encounter.class        = \"virtual\".",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=LOC]"
          }
        ]
      },
      {
        "id": "Encounter:fpargeneralencounter.location:assignedparticipatinglocation",
        "path": "Encounter.location",
        "sliceName": "AssignedParticipatingLocation",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "alias": [
          "AssignedParticipatingLocation"
        ],
        "min": 0,
        "max": "1",
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Encounter:fpargeneralencounter.location:assignedparticipatinglocation.extension:patientarrivalstatus",
        "path": "Encounter.location.extension",
        "sliceName": "PatientArrivalStatus",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "preferred",
          "description": "The codes that describe whether or not the patient has arrived at the specified location for the encounter",
          "valueSetReference": {
            "reference": "ValueSet/arrivalStatus"
          }
        }
      },
      {
        "id": "Encounter:fpargeneralencounter.location:assignedparticipatinglocation.location",
        "path": "Encounter.location.location",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Reference"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Encounter:fpargeneralencounter.location:servicedeliverylocation",
        "path": "Encounter.location",
        "sliceName": "ServiceDeliveryLocation",
        "alias": [
          "ServiceDeliveryLocationCondition"
        ],
        "min": 0,
        "max": "1",
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Encounter:fpargeneralencounter.location:servicedeliverylocation.extension:servicedeliverylocationcondition",
        "path": "Encounter.location.extension",
        "sliceName": "ServiceDeliveryLocationCondition",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "preferred",
          "description": "The codes that describe the state of readiness of the encounter location",
          "valueSetReference": {
            "reference": "ValueSet/locationCondition"
          }
        }
      },
      {
        "id": "Encounter:fpargeneralencounter.location:servicedeliverylocation.location",
        "path": "Encounter.location.location",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Reference"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      }
    ]
  }
}