Implementation Guide
ePA Basisfunktionalitäten
Version 1.3.2 - release

## : EPA CapabilityStatement für den Patient Service - TTL Representation

Active as of 2026-07-15

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

    # - resource -------------------------------------------------------------------

    <http://hl7.org/fhir/CapabilityStatement/epa-patient-server> a fhir:CapabilityStatement ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:Resource.id [ fhir:value "epa-patient-server"] ;
      fhir:Resource.meta [
         fhir:Meta.profile [
           fhir:value "https://gematik.de/fhir/ti/StructureDefinition/ti-capability-statement" ;
           fhir:index 0 ;
           fhir:link <https://gematik.de/fhir/ti/StructureDefinition/ti-capability-statement>
         ]
      ] ;
      fhir:DomainResource.extension [
         fhir:index 0 ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "name" ] ;
           fhir:Extension.valueString [ fhir:value "X-Request-ID" ]
         ], [
           fhir:index 1 ;
           fhir:Extension.url [ fhir:value "type" ] ;
           fhir:Extension.valueString [ fhir:value "string" ]
         ], [
           fhir:index 2 ;
           fhir:Extension.url [ fhir:value "description" ] ;
           fhir:Extension.valueString [ fhir:value "UUID of the request message" ]
         ], [
           fhir:index 3 ;
           fhir:Extension.url [ fhir:value "format" ] ;
           fhir:Extension.valueString [ fhir:value "uuid" ]
         ], [
           fhir:index 4 ;
           fhir:Extension.url [ fhir:value "required" ] ;
           fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]
         ] ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-header" ]
      ], [
         fhir:index 1 ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "name" ] ;
           fhir:Extension.valueString [ fhir:value "x-insurantid" ]
         ], [
           fhir:index 1 ;
           fhir:Extension.url [ fhir:value "type" ] ;
           fhir:Extension.valueString [ fhir:value "string" ]
         ], [
           fhir:index 2 ;
           fhir:Extension.url [ fhir:value "description" ] ;
           fhir:Extension.valueString [ fhir:value "Health Record Identifier" ]
         ], [
           fhir:index 3 ;
           fhir:Extension.url [ fhir:value "pattern" ] ;
           fhir:Extension.valueString [ fhir:value "^[A-Z]{1}\\d{9}$" ]
         ], [
           fhir:index 4 ;
           fhir:Extension.url [ fhir:value "required" ] ;
           fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]
         ] ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-header" ]
      ], [
         fhir:index 2 ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "name" ] ;
           fhir:Extension.valueString [ fhir:value "x-useragent" ]
         ], [
           fhir:index 1 ;
           fhir:Extension.url [ fhir:value "type" ] ;
           fhir:Extension.valueString [ fhir:value "string" ]
         ], [
           fhir:index 2 ;
           fhir:Extension.url [ fhir:value "description" ] ;
           fhir:Extension.valueString [ fhir:value "user agent information" ]
         ], [
           fhir:index 3 ;
           fhir:Extension.url [ fhir:value "pattern" ] ;
           fhir:Extension.valueString [ fhir:value "^[a-zA-Z0-9]{20}\\/[a-zA-Z0-9\\-\\.]{1,15}$" ]
         ], [
           fhir:index 4 ;
           fhir:Extension.url [ fhir:value "required" ] ;
           fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]
         ] ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-header" ]
      ], [
         fhir:index 3 ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "statusCode" ] ;
           fhir:Extension.valueString [ fhir:value "403" ]
         ], [
           fhir:index 1 ;
           fhir:Extension.url [ fhir:value "description" ] ;
           fhir:Extension.valueString [ fhir:value "Requestor not authorized (no user session with valid ID-Token available)" ]
         ], [
           fhir:index 2 ;
           fhir:Extension.url [ fhir:value "responseType" ] ;
           fhir:Extension.valueString [ fhir:value "application/json" ]
         ], [
           fhir:index 3 ;
           fhir:Extension.url [ fhir:value "errorCode" ] ;
           fhir:Extension.valueString [ fhir:value "invalAuth" ]
         ] ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
      ], [
         fhir:index 4 ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "statusCode" ] ;
           fhir:Extension.valueString [ fhir:value "403" ]
         ], [
           fhir:index 1 ;
           fhir:Extension.url [ fhir:value "description" ] ;
           fhir:Extension.valueString [ fhir:value "Requestor has no valid entitlement" ]
         ], [
           fhir:index 2 ;
           fhir:Extension.url [ fhir:value "responseType" ] ;
           fhir:Extension.valueString [ fhir:value "application/json" ]
         ], [
           fhir:index 3 ;
           fhir:Extension.url [ fhir:value "errorCode" ] ;
           fhir:Extension.valueString [ fhir:value "notEntitled" ]
         ] ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
      ], [
         fhir:index 5 ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "statusCode" ] ;
           fhir:Extension.valueString [ fhir:value "403" ]
         ], [
           fhir:index 1 ;
           fhir:Extension.url [ fhir:value "description" ] ;
           fhir:Extension.valueString [ fhir:value "Requestor role is not in the list of allowed user groups" ]
         ], [
           fhir:index 2 ;
           fhir:Extension.url [ fhir:value "responseType" ] ;
           fhir:Extension.valueString [ fhir:value "application/json" ]
         ], [
           fhir:index 3 ;
           fhir:Extension.url [ fhir:value "errorCode" ] ;
           fhir:Extension.valueString [ fhir:value "invalidOid" ]
         ] ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
      ], [
         fhir:index 6 ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "statusCode" ] ;
           fhir:Extension.valueString [ fhir:value "403" ]
         ], [
           fhir:index 1 ;
           fhir:Extension.url [ fhir:value "description" ] ;
           fhir:Extension.valueString [ fhir:value "Device registration does not exist (if requestor role is oid_versicherter only)" ]
         ], [
           fhir:index 2 ;
           fhir:Extension.url [ fhir:value "responseType" ] ;
           fhir:Extension.valueString [ fhir:value "application/json" ]
         ], [
           fhir:index 3 ;
           fhir:Extension.url [ fhir:value "errorCode" ] ;
           fhir:Extension.valueString [ fhir:value "unregisteredDevice" ]
         ] ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
      ], [
         fhir:index 7 ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "statusCode" ] ;
           fhir:Extension.valueString [ fhir:value "404" ]
         ], [
           fhir:index 1 ;
           fhir:Extension.url [ fhir:value "description" ] ;
           fhir:Extension.valueString [ fhir:value "Health record is in state UNKNOWN or INITIALIZED" ]
         ], [
           fhir:index 2 ;
           fhir:Extension.url [ fhir:value "responseType" ] ;
           fhir:Extension.valueString [ fhir:value "application/json" ]
         ], [
           fhir:index 3 ;
           fhir:Extension.url [ fhir:value "errorCode" ] ;
           fhir:Extension.valueString [ fhir:value "noHealthRecord" ]
         ] ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
      ], [
         fhir:index 8 ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "statusCode" ] ;
           fhir:Extension.valueString [ fhir:value "409" ]
         ], [
           fhir:index 1 ;
           fhir:Extension.url [ fhir:value "description" ] ;
           fhir:Extension.valueString [ fhir:value "Request conflicts with the current state of the health record" ]
         ], [
           fhir:index 2 ;
           fhir:Extension.url [ fhir:value "responseType" ] ;
           fhir:Extension.valueString [ fhir:value "application/json" ]
         ], [
           fhir:index 3 ;
           fhir:Extension.url [ fhir:value "errorCode" ] ;
           fhir:Extension.valueString [ fhir:value "statusMismatch" ]
         ] ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
      ], [
         fhir:index 9 ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "statusCode" ] ;
           fhir:Extension.valueString [ fhir:value "500" ]
         ], [
           fhir:index 1 ;
           fhir:Extension.url [ fhir:value "description" ] ;
           fhir:Extension.valueString [ fhir:value "Any other error" ]
         ], [
           fhir:index 2 ;
           fhir:Extension.url [ fhir:value "responseType" ] ;
           fhir:Extension.valueString [ fhir:value "application/json" ]
         ], [
           fhir:index 3 ;
           fhir:Extension.url [ fhir:value "errorCode" ] ;
           fhir:Extension.valueString [ fhir:value "internalError" ]
         ] ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
      ], [
         fhir:index 10 ;
         fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-base-url" ] ;
         fhir:Extension.valueString [ fhir:value "http://epa4all/epa/patient/api/v1/fhir" ]
      ] ;
      fhir:CapabilityStatement.url [ fhir:value "https://gematik.de/fhir/epa/CapabilityStatement/epa-patient-server"] ;
      fhir:CapabilityStatement.version [ fhir:value "1.3.2"] ;
      fhir:CapabilityStatement.name [ fhir:value "EPAPatientServer"] ;
      fhir:CapabilityStatement.title [ fhir:value "EPA CapabilityStatement für den Patient Service"] ;
      fhir:CapabilityStatement.status [ fhir:value "active"] ;
      fhir:CapabilityStatement.date [ fhir:value "2026-07-15"^^xsd:date] ;
      fhir:CapabilityStatement.publisher [ fhir:value "gematik GmbH"] ;
      fhir:CapabilityStatement.contact [
         fhir:index 0 ;
         fhir:ContactDetail.telecom [
           fhir:index 0 ;
           fhir:ContactPoint.system [ fhir:value "url" ] ;
           fhir:ContactPoint.value [ fhir:value "https://www.gematik.de" ]
         ]
      ] ;
      fhir:CapabilityStatement.description [ fhir:value "EPA Capability Statement für den Patient Service"] ;
      fhir:CapabilityStatement.jurisdiction [
         fhir:index 0 ;
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
           fhir:Coding.code [ fhir:value "DE" ]
         ]
      ] ;
      fhir:CapabilityStatement.copyright [ fhir:value "gematik GmbH / Dieser Implementation Guide ist lizenziert unter [Apache License](./license.html), Version 2.0."] ;
      fhir:CapabilityStatement.kind [ fhir:value "requirements"] ;
      fhir:CapabilityStatement.imports [
         fhir:value "https://gematik.de/fhir/epa/CapabilityStatement/epa-basic-server" ;
         fhir:index 0 ;
         fhir:link <https://gematik.de/fhir/epa/CapabilityStatement/epa-basic-server> ;
         fhir:Element.extension [
           fhir:index 0 ;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
           fhir:Extension.valueCode [ fhir:value "SHALL" ]
         ]
      ] ;
      fhir:CapabilityStatement.fhirVersion [ fhir:value "4.0.1"] ;
      fhir:CapabilityStatement.format [
         fhir:value "application/fhir+json" ;
         fhir:index 0
      ], [
         fhir:value "application/fhir+xml" ;
         fhir:index 1
      ] ;
      fhir:CapabilityStatement.rest [
         fhir:index 0 ;
         fhir:CapabilityStatement.rest.mode [ fhir:value "server" ] ;
         fhir:CapabilityStatement.rest.resource [
           fhir:index 0 ;
           fhir:Element.extension [
             fhir:index 0 ;
             fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
             fhir:Extension.valueCode [ fhir:value "SHALL" ]
           ] ;
           fhir:CapabilityStatement.rest.resource.type [ fhir:value "Patient" ] ;
           fhir:CapabilityStatement.rest.resource.profile [
             fhir:value "https://gematik.de/fhir/epa/StructureDefinition/epa-patient" ;
             fhir:link <https://gematik.de/fhir/epa/StructureDefinition/epa-patient>
           ] ;
           fhir:CapabilityStatement.rest.resource.supportedProfile [
             fhir:value "https://gematik.de/fhir/ti/StructureDefinition/ti-patient" ;
             fhir:index 0 ;
             fhir:link <https://gematik.de/fhir/ti/StructureDefinition/ti-patient> ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
               fhir:Extension.valueCode [ fhir:value "SHALL" ]
             ]
           ] ;
           fhir:CapabilityStatement.rest.resource.interaction [
             fhir:index 0 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
               fhir:Extension.valueCode [ fhir:value "SHALL" ]
             ], [
               fhir:index 1 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "200" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Successful operation" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "Bundle" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 2 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "400" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Unknown search parameter" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_PARAM_UNKNOWN" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 3 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "400" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Invalid query parameter(s)" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_BAD_SYNTAX" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 4 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "400" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Invalid request" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_BAD_FORMAT" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 5 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "404" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Unknown resource type" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_UNKNOWN_TYPE" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ] ;
             fhir:CapabilityStatement.rest.resource.interaction.code [ fhir:value "search-type" ]
           ], [
             fhir:index 1 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
               fhir:Extension.valueCode [ fhir:value "SHALL" ]
             ], [
               fhir:index 1 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "200" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Successful operation" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "Bundle" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 2 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "400" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Invalid request" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_BAD_FORMAT" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 3 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "404" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Unknown resource type" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_UNKNOWN_TYPE" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ] ;
             fhir:CapabilityStatement.rest.resource.interaction.code [ fhir:value "history-type" ]
           ], [
             fhir:index 2 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
               fhir:Extension.valueCode [ fhir:value "SHALL" ]
             ], [
               fhir:index 1 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "200" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Successful operation" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "EPAPatient" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 2 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "400" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Invalid request" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_BAD_FORMAT" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 3 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "404" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Unknown resource type" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_UNKNOWN_TYPE" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 4 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "404" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Resource is not known" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_RESOURCE_ID_FAIL" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ] ;
             fhir:CapabilityStatement.rest.resource.interaction.code [ fhir:value "read" ]
           ], [
             fhir:index 3 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
               fhir:Extension.valueCode [ fhir:value "SHALL" ]
             ], [
               fhir:index 1 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "200" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Successful operation" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "Bundle" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 2 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "400" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Invalid request" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_BAD_FORMAT" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 3 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "404" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Unknown resource type" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_UNKNOWN_TYPE" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 4 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "404" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Resource is not known" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_RESOURCE_ID_FAIL" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ] ;
             fhir:CapabilityStatement.rest.resource.interaction.code [ fhir:value "history-instance" ]
           ], [
             fhir:index 4 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
               fhir:Extension.valueCode [ fhir:value "SHALL" ]
             ], [
               fhir:index 1 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "200" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Successful operation" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "EPAPatient" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 2 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "400" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Invalid request" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_BAD_FORMAT" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 3 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "404" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Unknown resource type" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_UNKNOWN_TYPE" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 4 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "404" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Resource is not known" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_RESOURCE_ID_FAIL" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ] ;
             fhir:CapabilityStatement.rest.resource.interaction.code [ fhir:value "vread" ]
           ], [
             fhir:index 5 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
               fhir:Extension.valueCode [ fhir:value "SHALL" ]
             ], [
               fhir:index 1 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "201" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Created, wenn eine neue Ressourceninstanz erstellt wurde" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "EPAPatient" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 2 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "200" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Successful operation" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "EPAPatient" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 3 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "400" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Invalid request" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_BAD_FORMAT" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 4 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "400" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Invalid request" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "application/json" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "malformedRequest" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 5 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "403" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "ID-Token or Insurant-ID mismatch" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "SVC_IDENTITY_MISMATCH" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 6 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "404" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Unknown resource type" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_UNKNOWN_TYPE" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 7 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "404" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Resource is not known" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "MSG_RESOURCE_ID_FAIL" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 8 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "422" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Unprocessable Entity" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ], [
               fhir:index 9 ;
               fhir:Element.extension [
                 fhir:index 0 ;
                 fhir:Extension.url [ fhir:value "statusCode" ] ;
                 fhir:Extension.valueString [ fhir:value "412" ]
               ], [
                 fhir:index 1 ;
                 fhir:Extension.url [ fhir:value "description" ] ;
                 fhir:Extension.valueString [ fhir:value "Precondition Failed, wenn mehrere Ressourceninstanzen gefunden wurden" ]
               ], [
                 fhir:index 2 ;
                 fhir:Extension.url [ fhir:value "responseType" ] ;
                 fhir:Extension.valueString [ fhir:value "TIOperationOutcome" ]
               ], [
                 fhir:index 3 ;
                 fhir:Extension.url [ fhir:value "errorCode" ] ;
                 fhir:Extension.valueString [ fhir:value "UPDATE_MULTIPLE_MATCHES" ]
               ] ;
               fhir:Extension.url [ fhir:value "https://gematik.de/fhir/ti/StructureDefinition/extension-http-response-info" ]
             ] ;
             fhir:CapabilityStatement.rest.resource.interaction.code [ fhir:value "update" ]
           ] ;
           fhir:CapabilityStatement.rest.resource.versioning [ fhir:value "versioned-update" ] ;
           fhir:CapabilityStatement.rest.resource.readHistory [ fhir:value "true"^^xsd:boolean ] ;
           fhir:CapabilityStatement.rest.resource.conditionalUpdate [
             fhir:value "true"^^xsd:boolean ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
               fhir:Extension.valueCode [ fhir:value "SHALL" ]
             ]
           ] ;
           fhir:CapabilityStatement.rest.resource.searchParam [
             fhir:index 0 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation" ] ;
               fhir:Extension.valueCode [ fhir:value "SHALL" ]
             ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "identifier" ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.definition [
               fhir:value "http://hl7.org/fhir/SearchParameter/Patient-identifier" ;
               fhir:link <http://hl7.org/fhir/SearchParameter/Patient-identifier>
             ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "token" ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "Patient.identifier" ]
           ]
         ]
      ] .

    # - ontology header ------------------------------------------------------------

    <http://hl7.org/fhir/CapabilityStatement/epa-patient-server.ttl> a owl:Ontology ;
      owl:imports fhir:fhir.ttl ;
      owl:versionIRI <http://build.fhir.org/CapabilityStatement/epa-patient-server.ttl> .