{
  "resourceType": "StructureDefinition",
  "id": "PractitionerRole",
  "meta": {
    "lastUpdated": "2019-10-31T22:29:23.356+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Base.Individuals"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 2
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "individual"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pa"
    }
  ],
  "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/PractitionerRole",
  "version": "4.0.1",
  "name": "PractitionerRole",
  "status": "draft",
  "date": "2022-07-08T15:10:50.6856647+00:00",
  "publisher": "Health Level Seven International (Patient Administration)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/fhir"
        }
      ]
    },
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
        }
      ]
    }
  ],
  "description": "A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time.",
  "purpose": "Need to track services that a healthcare provider is able to provide at an organization's location, and the services that they can perform there.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "servd",
      "uri": "http://www.omg.org/spec/ServD/1.0/",
      "name": "ServD"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "PractitionerRole",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "PractitionerRole",
        "path": "PractitionerRole",
        "short": "Roles/organizations the practitioner is associated with",
        "definition": "A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time.",
        "mapping": [
          {
            "identity": "v2",
            "map": "PRD (as one example)"
          },
          {
            "identity": "rim",
            "map": "Role"
          },
          {
            "identity": "servd",
            "map": "ServiceSiteProvider"
          }
        ]
      },
      {
        "id": "PractitionerRole.identifier",
        "path": "PractitionerRole.identifier",
        "short": "Business Identifiers that are specific to a role/location",
        "definition": "Business Identifiers that are specific to a role/location.",
        "requirements": "Often, specific identities are assigned for the agent.",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.identifier"
          },
          {
            "identity": "v2",
            "map": "PRD-7 (or XCN.1)"
          },
          {
            "identity": "rim",
            "map": ".id"
          },
          {
            "identity": "servd",
            "map": "./Identifiers"
          }
        ]
      },
      {
        "id": "PractitionerRole.active",
        "path": "PractitionerRole.active",
        "short": "Whether this practitioner role record is in active use",
        "definition": "Whether this practitioner role record is in active use.",
        "comment": "If this value is false, you may refer to the period to see when the role was in active use. If there is no period specified, no inference can be made about when it was active.",
        "requirements": "Need to be able to mark a practitioner role record as not to be used because it was created in error, or otherwise no longer in active use.",
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.status"
          },
          {
            "identity": "v2",
            "map": "STF-7"
          },
          {
            "identity": "rim",
            "map": ".statusCode"
          }
        ]
      },
      {
        "id": "PractitionerRole.period",
        "path": "PractitionerRole.period",
        "short": "The period during which the practitioner is authorized to perform in these role(s)",
        "definition": "The period during which the person is authorized to act as a practitioner in these role(s) for the organization.",
        "requirements": "Even after the agencies is revoked, the fact that it existed must still be recorded.",
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.done[x]"
          },
          {
            "identity": "v2",
            "map": "PRD-8/9 / PRA-5.4"
          },
          {
            "identity": "rim",
            "map": ".performance[@typeCode <= 'PPRF'].ActDefinitionOrEvent.effectiveTime"
          },
          {
            "identity": "servd",
            "map": "(ServD maps Practitioners and Organizations via another entity, so this concept is not available)"
          }
        ]
      },
      {
        "id": "PractitionerRole.practitioner",
        "path": "PractitionerRole.practitioner",
        "short": "Practitioner that is able to provide the defined services for the organization",
        "definition": "Practitioner that is able to provide the defined services for the organization.",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".player"
          }
        ]
      },
      {
        "id": "PractitionerRole.organization",
        "path": "PractitionerRole.organization",
        "short": "Organization where the roles are available",
        "definition": "The organization where the Practitioner performs the roles associated.",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".scoper"
          }
        ]
      },
      {
        "id": "PractitionerRole.code",
        "path": "PractitionerRole.code",
        "short": "Roles which this practitioner may perform",
        "definition": "Roles which this practitioner is authorized to perform for the organization.",
        "comment": "A person may have more than one role.",
        "requirements": "Need to know what authority the practitioner has - what can they do?",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "PractitionerRole"
            }
          ],
          "strength": "example",
          "description": "The role a person plays representing an organization.",
          "valueSet": "http://hl7.org/fhir/ValueSet/practitioner-role"
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "PRD-1 / STF-18  / PRA-3  / PRT-4  / ROL-3 / ORC-12 / OBR-16 / PV1-7 / PV1-8 / PV1-9 / PV1-17"
          },
          {
            "identity": "rim",
            "map": ".code"
          },
          {
            "identity": "servd",
            "map": "(ServD maps Practitioners and Organizations via another entity, so this concept is not available)"
          }
        ]
      },
      {
        "id": "PractitionerRole.specialty",
        "path": "PractitionerRole.specialty",
        "short": "Specific specialty of the practitioner",
        "definition": "Specific specialty of the practitioner.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "PractitionerSpecialty"
            }
          ],
          "strength": "preferred",
          "description": "Specific specialty associated with the agency.",
          "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "PRA-5"
          },
          {
            "identity": "rim",
            "map": ".player.HealthCareProvider[@classCode = 'PROV'].code"
          },
          {
            "identity": "servd",
            "map": "./Specialty"
          }
        ]
      },
      {
        "id": "PractitionerRole.location",
        "path": "PractitionerRole.location",
        "short": "The location(s) at which this practitioner provides care",
        "definition": "The location(s) at which this practitioner provides care.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Location"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.where[x]"
          },
          {
            "identity": "rim",
            "map": ".performance.ActDefinitionOrEvent.ServiceDeliveryLocation[@classCode = 'SDLOC']"
          },
          {
            "identity": "servd",
            "map": "(ServD maps Practitioners and Organizations via another entity, so this concept is not available)<br/> However these are accessed via the Site.ServiceSite.ServiceSiteProvider record. (The Site has the location)"
          }
        ]
      },
      {
        "id": "PractitionerRole.healthcareService",
        "path": "PractitionerRole.healthcareService",
        "short": "The list of healthcare services that this worker provides for this role's Organization/Location(s)",
        "definition": "The list of healthcare services that this worker provides for this role's Organization/Location(s).",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/HealthcareService"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "EDU-2 / AFF-3"
          },
          {
            "identity": "rim",
            "map": ".player.QualifiedEntity[@classCode = 'QUAL'].code"
          }
        ]
      },
      {
        "id": "PractitionerRole.telecom",
        "path": "PractitionerRole.telecom",
        "short": "Contact details that are specific to the role/location/service",
        "definition": "Contact details that are specific to the role/location/service.",
        "requirements": "Often practitioners have a dedicated line for each location (or service) that they work at, and need to be able to define separate contact details for each of these.",
        "type": [
          {
            "code": "ContactPoint"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".telecom"
          }
        ]
      },
      {
        "id": "PractitionerRole.availableTime",
        "path": "PractitionerRole.availableTime",
        "short": "Times the Service Site is available",
        "definition": "A collection of times the practitioner is available or performing this role at the location and/or healthcareservice.",
        "comment": "More detailed availability information may be provided in associated Schedule/Slot resources.",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "id": "PractitionerRole.availableTime.daysOfWeek",
        "path": "PractitionerRole.availableTime.daysOfWeek",
        "short": "mon | tue | wed | thu | fri | sat | sun",
        "definition": "Indicates which days of the week are available between the start and end Times.",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DaysOfWeek"
            }
          ],
          "strength": "required",
          "description": "The days of the week.",
          "valueSet": "http://hl7.org/fhir/ValueSet/days-of-week|4.0.1"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "id": "PractitionerRole.availableTime.allDay",
        "path": "PractitionerRole.availableTime.allDay",
        "short": "Always available? e.g. 24 hour service",
        "definition": "Is this always available? (hence times are irrelevant) e.g. 24 hour service.",
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "id": "PractitionerRole.availableTime.availableStartTime",
        "path": "PractitionerRole.availableTime.availableStartTime",
        "short": "Opening time of day (ignored if allDay = true)",
        "definition": "The opening time of day. Note: If the AllDay flag is set, then this time is ignored.",
        "comment": "The timezone is expected to be for where this HealthcareService is provided at.",
        "max": "1",
        "type": [
          {
            "code": "time"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "id": "PractitionerRole.availableTime.availableEndTime",
        "path": "PractitionerRole.availableTime.availableEndTime",
        "short": "Closing time of day (ignored if allDay = true)",
        "definition": "The closing time of day. Note: If the AllDay flag is set, then this time is ignored.",
        "comment": "The timezone is expected to be for where this HealthcareService is provided at.",
        "max": "1",
        "type": [
          {
            "code": "time"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "id": "PractitionerRole.notAvailable",
        "path": "PractitionerRole.notAvailable",
        "short": "Not available during this time due to provided reason",
        "definition": "The practitioner is not available or performing this role during this period of time due to the provided reason.",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "id": "PractitionerRole.notAvailable.description",
        "path": "PractitionerRole.notAvailable.description",
        "short": "Reason presented to the user explaining why time not available",
        "definition": "The reason that can be presented to the user as to why this time is not available.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "PractitionerRole.notAvailable.during",
        "path": "PractitionerRole.notAvailable.during",
        "short": "Service not available from this date",
        "definition": "Service is not available (seasonally or for a public holiday) from this date.",
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "id": "PractitionerRole.availabilityExceptions",
        "path": "PractitionerRole.availabilityExceptions",
        "short": "Description of availability exceptions",
        "definition": "A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times.",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "id": "PractitionerRole.endpoint",
        "path": "PractitionerRole.endpoint",
        "short": "Technical endpoints providing access to services operated for the practitioner with this role",
        "definition": "Technical endpoints providing access to services operated for the practitioner with this role.",
        "requirements": "Organizations have multiple systems that provide various services and ,ay also be different for practitioners too.\r\rSo the endpoint satisfies the need to be able to define the technical connection details for how to connect to them, and for what purpose.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Endpoint"
            ]
          }
        ]
      }
    ]
  }
}