{
  "resourceType": "StructureDefinition",
  "id": "HealthcareService",
  "meta": {
    "lastUpdated": "2019-10-31T22:29:23.356+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Base.Entities"
    },
    {
      "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": "business"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pa"
    }
  ],
  "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/HealthcareService",
  "version": "4.0.1",
  "name": "HealthcareService",
  "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": "The details of a healthcare service available at a location.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "HealthcareService",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "derivation": "specialization",
  "differential": {
    "element": [
      {
        "id": "HealthcareService",
        "path": "HealthcareService",
        "short": "The details of a healthcare service available at a location",
        "definition": "The details of a healthcare service available at a location.",
        "mapping": [
          {
            "identity": "rim",
            "map": "act[classCode=ACT][moodCode=DEF]"
          }
        ]
      },
      {
        "id": "HealthcareService.identifier",
        "path": "HealthcareService.identifier",
        "short": "External identifiers for this item",
        "definition": "External identifiers for this item.",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.identifier"
          },
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "id": "HealthcareService.active",
        "path": "HealthcareService.active",
        "short": "Whether this HealthcareService record is in active use",
        "definition": "This flag is used to mark the record to not be used. This is not used when a center is closed for maintenance, or for holidays, the notAvailable period is to be used for this.",
        "comment": "This element is labeled as a modifier because it may be used to mark that the resource was created in error.",
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
        "isModifier": true,
        "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.status"
          },
          {
            "identity": "rim",
            "map": ".statusCode"
          }
        ]
      },
      {
        "id": "HealthcareService.providedBy",
        "path": "HealthcareService.providedBy",
        "short": "Organization that provides this service",
        "definition": "The organization that provides this healthcare service.",
        "comment": "This property is recommended to be the same as the Location's managingOrganization, and if not provided should be interpreted as such. If the Location does not have a managing Organization, then this property should be populated.",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".scopingRole.Organization"
          }
        ]
      },
      {
        "id": "HealthcareService.category",
        "path": "HealthcareService.category",
        "short": "Broad category of service being performed or delivered",
        "definition": "Identifies the broad category of service being performed or delivered.",
        "comment": "Selecting a Service Category then determines the list of relevant service types that can be selected in the primary service type.",
        "alias": [
          "service category"
        ],
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "service-category"
            }
          ],
          "strength": "example",
          "description": "A category of the service(s) that could be provided.",
          "valueSet": "http://hl7.org/fhir/ValueSet/service-category"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "id": "HealthcareService.type",
        "path": "HealthcareService.type",
        "short": "Type of service that may be delivered or performed",
        "definition": "The specific type of service that may be delivered or performed.",
        "alias": [
          "service type"
        ],
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "service-type"
            }
          ],
          "strength": "example",
          "description": "Additional details about where the content was created (e.g. clinical specialty).",
          "valueSet": "http://hl7.org/fhir/ValueSet/service-type"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".actrelationship[typeCode=COMP.act[classCode=ACT][moodCode=DEF].code"
          }
        ]
      },
      {
        "id": "HealthcareService.specialty",
        "path": "HealthcareService.specialty",
        "short": "Specialties handled by the HealthcareService",
        "definition": "Collection of specialties handled by the service site. This is more of a medical term.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "service-specialty"
            }
          ],
          "strength": "preferred",
          "description": "A specialty that a healthcare service may provide.",
          "valueSet": "http://hl7.org/fhir/ValueSet/c80-practice-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".actrelationship[typeCode=COMP.act[classCode=ACT][moodCode=DEF].code"
          }
        ]
      },
      {
        "id": "HealthcareService.location",
        "path": "HealthcareService.location",
        "short": "Location(s) where service may be provided",
        "definition": "The location(s) where this healthcare service may be provided.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Location"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.where[x]"
          },
          {
            "identity": "rim",
            "map": ".location.role[classCode=SDLOC]"
          }
        ]
      },
      {
        "id": "HealthcareService.name",
        "path": "HealthcareService.name",
        "short": "Description of service as presented to a consumer while searching",
        "definition": "Further description of the service as it would be presented to a consumer while searching.",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".name"
          }
        ]
      },
      {
        "id": "HealthcareService.comment",
        "path": "HealthcareService.comment",
        "short": "Additional description and/or any specific issues not covered elsewhere",
        "definition": "Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName.",
        "comment": "Would expect that a user would not see this information on a search results, and it would only be available when viewing the complete details of the service.",
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".location.role[classCode=SDLOC].desc"
          }
        ]
      },
      {
        "id": "HealthcareService.extraDetails",
        "path": "HealthcareService.extraDetails",
        "short": "Extra details about the service that can't be placed in the other fields",
        "definition": "Extra details about the service that can't be placed in the other fields.",
        "max": "1",
        "type": [
          {
            "code": "markdown"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".actrelationship[typeCode=COMP.act[classCode=ACT][moodCode=DEF].text"
          }
        ]
      },
      {
        "id": "HealthcareService.photo",
        "path": "HealthcareService.photo",
        "short": "Facilitates quick identification of the service",
        "definition": "If there is a photo/symbol associated with this HealthcareService, it may be included here to facilitate quick identification of the service in a list.",
        "max": "1",
        "type": [
          {
            "code": "Attachment"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".actrelationship[typeCode=SBJ].observation.value"
          }
        ]
      },
      {
        "id": "HealthcareService.telecom",
        "path": "HealthcareService.telecom",
        "short": "Contacts related to the healthcare service",
        "definition": "List of contacts related to this specific healthcare service.",
        "comment": "If this is empty, then refer to the location's contacts.",
        "type": [
          {
            "code": "ContactPoint"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".telecom"
          }
        ]
      },
      {
        "id": "HealthcareService.coverageArea",
        "path": "HealthcareService.coverageArea",
        "short": "Location(s) service is intended for/available to",
        "definition": "The location(s) that this service is available to (not where the service is provided).",
        "comment": "The locations referenced by the coverage area can include both specific locations, including areas, and also conceptual domains too (mode = kind), such as a physical area (tri-state area) and some other attribute (covered by Example Care Organization). These types of Locations are often not managed by any specific organization. This could also include generic locations such as \"in-home\".",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Location"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".location.role[classCode=SDLOC].subjectOf.A_SpatialCoordinate"
          }
        ]
      },
      {
        "id": "HealthcareService.serviceProvisionCode",
        "path": "HealthcareService.serviceProvisionCode",
        "short": "Conditions under which service is available/offered",
        "definition": "The code(s) that detail the conditions under which the healthcare service is available/offered.",
        "comment": "The provision means being commissioned by, contractually obliged or financially sourced. Types of costings that may apply to this healthcare service, such if the service may be available for free, some discounts available, or fees apply.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ServiceProvisionConditions"
            }
          ],
          "strength": "example",
          "description": "The code(s) that detail the conditions under which the healthcare service is available/offered.",
          "valueSet": "http://hl7.org/fhir/ValueSet/service-provision-conditions"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".actrelationship[typeCode=PRCN].observation[moodCode=EVN.CRT]"
          }
        ]
      },
      {
        "id": "HealthcareService.eligibility",
        "path": "HealthcareService.eligibility",
        "short": "Specific eligibility requirements required to use the service",
        "definition": "Does this service have specific eligibility requirements that need to be met in order to use the service?",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "HealthcareService.eligibility.code",
        "path": "HealthcareService.eligibility.code",
        "short": "Coded value for the eligibility",
        "definition": "Coded value for the eligibility.",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ServiceEligibility"
            }
          ],
          "strength": "example",
          "description": "Coded values underwhich a specific service is made available."
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".actrelationship[typeCode=PRCN].observation[moodCode=EVN.CRT]"
          }
        ]
      },
      {
        "id": "HealthcareService.eligibility.comment",
        "path": "HealthcareService.eligibility.comment",
        "short": "Describes the eligibility conditions for the service",
        "definition": "Describes the eligibility conditions for the service.",
        "comment": "The description of service eligibility should, in general, not exceed one or two paragraphs. It should be sufficient for a prospective consumer to determine if they are likely to be eligible or not. Where eligibility requirements and conditions are complex, it may simply be noted that an eligibility assessment is required. Where eligibility is determined by an outside source, such as an Act of Parliament, this should be noted, preferably with a reference to a commonly available copy of the source document such as a web page.",
        "max": "1",
        "type": [
          {
            "code": "markdown"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".actrelationship[typeCode=PRCN].observation[moodCode=EVN.CRT].text"
          }
        ]
      },
      {
        "id": "HealthcareService.program",
        "path": "HealthcareService.program",
        "short": "Programs that this service is applicable to",
        "definition": "Programs that this service is applicable to.",
        "comment": "Programs are often defined externally to an Organization, commonly by governments; e.g. Home and Community Care Programs, Homeless Program, ….",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "Program"
            }
          ],
          "strength": "example",
          "description": "Government or local programs that this service applies to.",
          "valueSet": "http://hl7.org/fhir/ValueSet/program"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".actrelationship[typeCode=PERT].observation"
          }
        ]
      },
      {
        "id": "HealthcareService.characteristic",
        "path": "HealthcareService.characteristic",
        "short": "Collection of characteristics (attributes)",
        "definition": "Collection of characteristics (attributes).",
        "comment": "These could be such things as is wheelchair accessible.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ServiceCharacteristic"
            }
          ],
          "strength": "example",
          "description": "A custom attribute that could be provided at a service (e.g. Wheelchair accessibiliy)."
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".actrelationship[typeCode=PERT].observation"
          }
        ]
      },
      {
        "id": "HealthcareService.communication",
        "path": "HealthcareService.communication",
        "short": "The language that this service is offered in",
        "definition": "Some services are specifically made available in multiple languages, this property permits a directory to declare the languages this is offered in. Typically this is only provided where a service operates in communities with mixed languages used.",
        "comment": "When using this property it indicates that the service is available with this language, it is not derived from the practitioners, and not all are required to use this language, just that this language is available while scheduling.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
              "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "Language"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
              "valueBoolean": true
            }
          ],
          "strength": "preferred",
          "description": "A human language.",
          "valueSet": "http://hl7.org/fhir/ValueSet/languages"
        }
      },
      {
        "id": "HealthcareService.referralMethod",
        "path": "HealthcareService.referralMethod",
        "short": "Ways that the service accepts referrals",
        "definition": "Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ReferralMethod"
            }
          ],
          "strength": "example",
          "description": "The methods of referral can be used when referring to a specific HealthCareService resource.",
          "valueSet": "http://hl7.org/fhir/ValueSet/service-referral-method"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".actrelationship[typeCode=PERT].observation"
          }
        ]
      },
      {
        "id": "HealthcareService.appointmentRequired",
        "path": "HealthcareService.appointmentRequired",
        "short": "If an appointment is required for access to this service",
        "definition": "Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service.",
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".actrelationship[typeCode=PERT].observation"
          }
        ]
      },
      {
        "id": "HealthcareService.availableTime",
        "path": "HealthcareService.availableTime",
        "short": "Times the Service Site is available",
        "definition": "A collection of times that the Service Site is available.",
        "comment": "More detailed availability information may be provided in associated Schedule/Slot resources.",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "id": "HealthcareService.availableTime.daysOfWeek",
        "path": "HealthcareService.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": "HealthcareService.availableTime.allDay",
        "path": "HealthcareService.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": "HealthcareService.availableTime.availableStartTime",
        "path": "HealthcareService.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 time zone is expected to be for where this HealthcareService is provided at.",
        "max": "1",
        "type": [
          {
            "code": "time"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "id": "HealthcareService.availableTime.availableEndTime",
        "path": "HealthcareService.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 time zone is expected to be for where this HealthcareService is provided at.",
        "max": "1",
        "type": [
          {
            "code": "time"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "id": "HealthcareService.notAvailable",
        "path": "HealthcareService.notAvailable",
        "short": "Not available during this time due to provided reason",
        "definition": "The HealthcareService is not available during this period of time due to the provided reason.",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          }
        ]
      },
      {
        "id": "HealthcareService.notAvailable.description",
        "path": "HealthcareService.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": "HealthcareService.notAvailable.during",
        "path": "HealthcareService.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": "HealthcareService.availabilityExceptions",
        "path": "HealthcareService.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": "HealthcareService.endpoint",
        "path": "HealthcareService.endpoint",
        "short": "Technical endpoints providing access to electronic services operated for the healthcare service",
        "definition": "Technical endpoints providing access to services operated for the specific healthcare services defined at this resource.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Endpoint"
            ]
          }
        ]
      }
    ]
  }
}