{
  "resourceType": "StructureDefinition",
  "id": "shr-encounter-EncounterPerformed",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <p><b>SHR EncounterPerformed Profile</b></p>\n  <p/>\n  <p><b>SHR Mapping Summary</b></p>\n  <p><pre>shr.encounter.EncounterPerformed maps to Encounter:\n  Subject maps to subject\n  TypeAsaCoding maps to class  // class is a coding, not a CodeableConcept. We should be able to handle that\n  ServiceProvider maps to serviceProvider\n  ServiceGiven maps to type\n  PerformedContext.Status maps to status\n  PerformedContext.OccurrenceTimeOrPeriod maps to period\n  PerformedContext.Participant maps to participant.individual\n  constrain participant.type to 0..1\n  PerformedContext.Participant.ParticipationType maps to participant.type\n  PerformedContext.Participant.ParticipationPeriod maps to participant.period\n  PerformedContext.RelatedRequest maps to incomingReferral\n  constrain location to 0..1\n  PerformedContext.Facility maps to location.location\n  PerformedContext.Reason maps to reason\n  &lt;TBD &quot;HealthConcern&quot;&gt; maps to indication\n</pre></p>\n</div>"
  },
  "url": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-encounter-EncounterPerformed",
  "identifier": [
    {
      "system": "http://standardhealthrecord.org",
      "value": "shr.encounter.EncounterPerformed"
    }
  ],
  "version": "0.0.1",
  "name": "SHR EncounterPerformed Profile",
  "status": "draft",
  "date": "2017-12-20",
  "publisher": "The MITRE Corporation: Standard Health Record Collaborative",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://standardhealthrecord.org"
        }
      ]
    }
  ],
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "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:shr-encounter-EncounterPerformed",
        "path": "Encounter",
        "short": "SHR EncounterPerformed Profile",
        "definition": "An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient."
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.extension:relatedencounter",
        "path": "Encounter.extension",
        "sliceName": "relatedencounter",
        "definition": "If content was generated during a patient encounter, related encounter is the encounter where the information was gained.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-RelatedEncounter-extension"
          }
        ]
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.extension:author",
        "path": "Encounter.extension",
        "sliceName": "author",
        "definition": "The person or organization who created the entry and is responsible for (and may certify) the content.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Author-extension"
          }
        ]
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.extension:informant",
        "path": "Encounter.extension",
        "sliceName": "informant",
        "definition": "The person or entity that provided the information in the entry, as distinct from who created the entry, e.g. the subject (patient), medical professional, family member, device or software program.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Informant-extension"
          }
        ]
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.extension:type",
        "path": "Encounter.extension",
        "sliceName": "type",
        "definition": "The most specific code (lowest level term) describing the kind or sort of thing being represented.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Type-extension"
          }
        ]
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.extension:category",
        "path": "Encounter.extension",
        "sliceName": "category",
        "definition": "A class or division of people or things having particular shared characteristics",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Category-extension"
          }
        ]
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.extension:performedcontext",
        "path": "Encounter.extension",
        "sliceName": "performedcontext",
        "definition": "ActionContext indicating actual performance or execution of a healthcare-related action, e.g., 3rd dose of Hepatitis B vaccine administered on Dec 4th 2012, appendectomy performed today.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-PerformedContext-extension"
          }
        ]
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.extension:performedcontext.extension:reason",
        "path": "Encounter.extension.extension"
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.extension:performedcontext.extension:reason.extension:codeableconcept",
        "path": "Encounter.extension.extension.extension"
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.extension:performedcontext.extension:reason.extension:codeableconcept.valueCodeableConcept",
        "path": "Encounter.extension.extension.extension.valueCodeableConcept",
        "binding": {
          "strength": "preferred",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/encounter-reason"
          }
        }
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.extension:performedcontext.extension:status",
        "path": "Encounter.extension.extension"
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.extension:performedcontext.extension:status.value[x]",
        "path": "Encounter.extension.extension.value[x]",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/encounter-status"
          }
        }
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.extension:referraldate",
        "path": "Encounter.extension",
        "sliceName": "referraldate",
        "definition": "The date when the provider received a referral for service. A referral includes an oral, written, faxed or electronic request for services made by the client or on the client's behalf.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-encounter-ReferralDate-extension"
          }
        ]
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.extension:referralsourcetype",
        "path": "Encounter.extension",
        "sliceName": "referralsourcetype",
        "definition": "The type of person or entity that instigated the encounter.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-encounter-ReferralSourceType-extension"
          }
        ]
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.extension:treatmentcooperation",
        "path": "Encounter.extension",
        "sliceName": "treatmentcooperation",
        "definition": "Whether the patient is undergoing treatment voluntarily, or under a legal order.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-encounter-TreatmentCooperation-extension"
          }
        ]
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.extension:paymentsource",
        "path": "Encounter.extension",
        "sliceName": "paymentsource",
        "definition": "The source of payment for the current encounter.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-encounter-PaymentSource-extension"
          }
        ]
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.subject",
        "path": "Encounter.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Group"
          }
        ]
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.participant",
        "path": "Encounter.participant"
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.participant.type",
        "path": "Encounter.participant.type",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.location",
        "path": "Encounter.location",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Encounter:shr-encounter-EncounterPerformed.serviceProvider",
        "path": "Encounter.serviceProvider",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Organization"
          }
        ]
      }
    ]
  }
}