### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/PractitionerRole.json
### ----------------------------------------------------
### -- Chunk 6 of 6
"
        }],
        "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.",
      "min" : 0,
      "max" : "*",
      "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).",
      "min" : 0,
      "max" : "*",
      "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.",
      "min" : 0,
      "max" : "*",
      "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.",
      "min" : 0,
      "max" : "*",
      "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.",
      "min" : 0,
      "max" : "*",
      "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.0"
      },
      "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.",
      "min" : 0,
      "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.",
      "min" : 0,
      "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.",
      "min" : 0,
      "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.",
      "min" : 0,
      "max" : "*",
      "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"
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "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.",
      "min" : 0,
      "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.",
      "min" : 0,
      "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.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Reference",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Endpoint"]
      }],
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    }]
  }
}


