{
  "resourceType": "StructureDefinition",
  "id": "ghpr-1-encounter",
  "url": "https://fhir.kemkes.go.id/r4/ghpr/StructureDefinition/Encounter",
  "version": "4.0.1",
  "name": "GhprEncounter",
  "status": "draft",
  "date": "2019-10-31T22:29:23+00:00",
  "description": "Encounter Kunjungan pasien GHPR",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Encounter",
  "baseDefinition": "https://fhir.kemkes.go.id/r4/StructureDefinition/Encounter",
  "derivation": "specialization",
  "meta": {
    "lastUpdated": "2021-12-31T09:24:23.849+00:00"
  },
  "differential": {
    "element": [
      {
        "id": "Encounter",
        "path": "Encounter",
        "alias": [
          "Visit"
        ],
        "mustSupport": true
      },
      {
        "id": "Encounter.subject",
        "path": "Encounter.subject",
        "alias": [
          "patient"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/Group"
            ]
          }
        ],
        "isSummary": true
      },
      {
        "id": "Encounter.participant",
        "path": "Encounter.participant",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.performer"
          },
          {
            "identity": "v2",
            "map": "ROL"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=PFM]"
          }
        ]
      },
      {
        "id": "Encounter.participant.type",
        "path": "Encounter.participant.type",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ParticipantType"
            }
          ],
          "strength": "extensible",
          "description": "Role of participant in encounter.",
          "valueSet": "http://hl7.org/fhir/ValueSet/encounter-participant-type"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.performer.function"
          },
          {
            "identity": "v2",
            "map": "ROL-3 (or maybe PRT-4)"
          },
          {
            "identity": "rim",
            "map": ".functionCode"
          }
        ]
      },
      {
        "id": "Encounter.participant.individual",
        "path": "Encounter.participant.individual",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.performer.actor"
          },
          {
            "identity": "w5",
            "map": "FiveWs.who"
          },
          {
            "identity": "v2",
            "map": "ROL-4"
          },
          {
            "identity": "rim",
            "map": ".role"
          }
        ]
      },
      {
        "id": "Encounter.episodeOfCare",
        "path": "Encounter.episodeOfCare",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
            ]
          }
        ],
        "isSummary": true
      }
    ]
  }
}