Skip to content

Commit

Permalink
Merge pull request #44 from gematik/fix-api-examples-1.3
Browse files Browse the repository at this point in the history
Fix examples for the API-Docs Workflow Profile 1.3
  • Loading branch information
Hendrejvr authored Jul 15, 2024
2 parents b2d6cbf + 7d09df1 commit 905a10d
Show file tree
Hide file tree
Showing 14 changed files with 90 additions and 107 deletions.
27 changes: 11 additions & 16 deletions API-Examples/2024-11-01/erp_abrufen/01_response_taskAccept.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
HTTP/1.1 200 OK
Content-Type: application/fhir+xml;charset=utf-8

<Bundle xmlns="http://hl7.org/fhir">
<id value="dffbfd6a-5712-4798-bdc8-07201eb77ab8"/>
<meta>
Expand All @@ -18,13 +15,11 @@ Content-Type: application/fhir+xml;charset=utf-8
<profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task|1.3"/>
</meta>
<extension url="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_PrescriptionType">
<valueCodeableConcept>
<coding>
<valueCoding>
<system value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_FlowType" />
<code value="160" />
<display value="Muster 16 (Apothekenpflichtige Arzneimittel)" />
</coding>
</valueCodeableConcept>
</valueCoding>
</extension>
<extension url="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_ExpiryDate">
<valueDate value="2020-06-02" />
Expand All @@ -42,22 +37,23 @@ Content-Type: application/fhir+xml;charset=utf-8
<system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_AccessCode"/>
<value value="777bea0e13cc9c42ceec14aec3ddee2263325dc2c6c699db115f58fe423607ea"/>
</identifier>
<identifier>
<use value="official"/>
<system value="http://fhir.de/sid/gkv/kvid-10"/>
<value value="X123456789"/>
</identifier>
<identifier>
<system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_Secret"/>
<value value="c36ca26502892b371d252c99b496e31505ff449aca9bc69e231c58148f6233cf"/>
</identifier>
<status value="in-progress"/>
<intent value="order"/>
<for>
<identifier>
<system value="http://fhir.de/sid/pkv/kvid-10"/>
<value value="X123456789"/>
</identifier>
</for>
<authoredOn value="2020-03-02T08:25:05+00:00"/>
<lastModified value="2020-03-02T08:45:05+00:00"/>
<performerType>
<coding>
<system value="urn:ietf:rfc:3986"/>
<system value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_OrganizationType"/>
<code value="urn:oid:1.2.276.0.76.4.54"/>
<display value="Öffentliche Apotheke"/>
</coding>
Expand All @@ -84,13 +80,12 @@ Content-Type: application/fhir+xml;charset=utf-8
</resource>
</entry>
<entry>
<fullUrl value="urn:uuid:281a985c-f25b-4aae-91a6-41ad744080b0"/>
<resource>
<Binary>
<id value="urn:uuid:281a985c-f25b-4aae-91a6-41ad744080b0"/>
<meta>
<versionId value="1"/>
<source value="#AsYRxq34dvONJAiv"/>
<profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Binary"/>
<profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Binary|1.3"/>
</meta>
<contentType value="application/pkcs7-mime" />
<data value="MIJTfQYJKoZIhvcNAQcCoIJTbjCCU2oCAQUxDzANBglghkgBZQMEAg..." />
Expand Down
68 changes: 44 additions & 24 deletions API-Examples/2024-11-01/erp_abrufen/10_response_taskGet.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
HTTP/1.1 200 OK

<Bundle xmlns="http://hl7.org/fhir">
<id value="dffbfd6a-5712-4798-bdc8-07201eb77ab8"/>
<meta>
Expand All @@ -14,23 +12,20 @@ HTTP/1.1 200 OK
<meta>
<versionId value="2"/>
<lastUpdated value="2020-02-18T10:05:05.038+00:00"/>
<source value="#AsYR9plLkvONJAiv"/>
<profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task|1.3"/>
</meta>
<extension url="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_PrescriptionType">
<valueCodeableConcept>
<coding>
<system value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_FlowType" />
<code value="160" />
<display value="Muster 16 (Apothekenpflichtige Arzneimittel)" />
</coding>
</valueCodeableConcept>
<valueCoding>
<system value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_FlowType" />
<code value="160" />
<display value="Muster 16 (Apothekenpflichtige Arzneimittel)" />
</valueCoding>
</extension>
<extension url="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_ExpiryDate">
<valueDateTime value="2020-06-02" />
<valueDate value="2020-06-02" />
</extension>
<extension url="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AcceptDate">
<valueDateTime value="2020-04-01" />
<valueDate value="2020-04-01" />
</extension>
<identifier>
<use value="official"/>
Expand All @@ -42,22 +37,23 @@ HTTP/1.1 200 OK
<system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_AccessCode"/>
<value value="777bea0e13cc9c42ceec14aec3ddee2263325dc2c6c699db115f58fe423607ea"/>
</identifier>
<identifier>
<use value="official"/>
<system value="http://fhir.de/sid/gkv/kvid-10"/>
<value value="X123456789"/>
</identifier>
<identifier>
<system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_Secret"/>
<value value="c36ca26502892b371d252c99b496e31505ff449aca9bc69e231c58148f6233cf"/>
</identifier>
<status value="completed"/>
<intent value="order"/>
<for>
<identifier>
<system value="http://fhir.de/sid/gkv/kvid-10"/>
<value value="X123456789"/>
</identifier>
</for>
<authoredOn value="2020-03-02T08:25:05+00:00"/>
<lastModified value="2020-03-02T08:45:05+00:00"/>
<performerType>
<coding>
<system value="urn:ietf:rfc:3986"/>
<system value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_OrganizationType"/>
<code value="urn:oid:1.2.276.0.76.4.54"/>
<display value="Öffentliche Apotheke"/>
</coding>
Expand All @@ -69,7 +65,9 @@ HTTP/1.1 200 OK
<code value="1"/>
</coding>
</type>
<valueString value="281a985c-f25b-4aae-91a6-41ad744080b0"/>
<valueReference>
<reference value="urn:oid:281a985c-f25b-4aae-91a6-41ad744080b0"/>
</valueReference>
</input>
<output>
<type>
Expand All @@ -78,12 +76,15 @@ HTTP/1.1 200 OK
<code value="3"/>
</coding>
</type>
<valueString value="dffbfd6a-5712-4798-bdc8-07201eb77ab8"/>
<valueReference>
<reference value="urn:oid:dffbfd6a-5712-4798-bdc8-07201eb77ab8"/>
</valueReference>
</output>
</Task>
</resource>
</entry>
<entry>
<fullUrl value="urn:uuid:dffbfd6a-5712-4798-bdc8-07201eb77ab8"/>
<resource>
<Bundle xmlns="http://hl7.org/fhir">
<id value="dffbfd6a-5712-4798-bdc8-07201eb77ab8"/>
Expand All @@ -100,9 +101,10 @@ HTTP/1.1 200 OK
<type value="document" />
<timestamp value="2020-03-20T07:31:34.328+00:00" />
<entry>
<fullUrl value="https://erp.zentral.erp.splitdns.ti-dienste.de/Composition/example" />
<fullUrl value="urn:uuid:ec72f89f-2c84-4907-9a09-4bed0911e6e1" />
<resource>
<Composition>
<id value="ec72f89f-2c84-4907-9a09-4bed0911e6e1" />
<meta>
<profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Composition|1.3" />
</meta>
Expand All @@ -121,7 +123,7 @@ HTTP/1.1 200 OK
</type>
<date value="2020-03-20T07:31:34.328+00:00" />
<author>
<reference value="https://erp.zentral.erp.splitdns.ti-dienste.de/Device/ErxService" />
<reference value="urn:uuid:b6fcc694-994f-40fa-968e-77a477bcc0b8" />
</author>
<title value="Quittung" />
<event>
Expand All @@ -130,11 +132,16 @@ HTTP/1.1 200 OK
<end value="2020-03-20T07:31:34.328+00:00" />
</period>
</event>
<section>
<entry>
<reference value="urn:uuid:47decbcb-a411-4298-8b61-eab2374c818a"/>
</entry>
</section>
</Composition>
</resource>
</entry>
<entry>
<fullUrl value="https://erp.zentral.erp.splitdns.ti-dienste.de/Device/1" />
<fullUrl value="urn:uuid:b6fcc694-994f-40fa-968e-77a477bcc0b8" />
<resource>
<Device>
<id value="1" />
Expand All @@ -153,14 +160,27 @@ HTTP/1.1 200 OK
</Device>
</resource>
</entry>
<entry>
<fullUrl value="urn:uuid:47decbcb-a411-4298-8b61-eab2374c818a"/>
<resource>
<Binary xmlns="http://hl7.org/fhir">
<id value="47decbcb-a411-4298-8b61-eab2374c818a"/>
<meta>
<profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Digest|1.3"/>
</meta>
<contentType value="application/octet-stream"/>
<data value="hcjUMWK000GMe4zsJtNu+00hM7f9yHWp7ewiMeXy6KY="/>
</Binary>
</resource>
</entry>
<signature>
<type>
<system value="urn:iso-astm:E1762-95:2013" />
<code value="1.2.840.10065.1.12.1.1" />
</type>
<when value="2020-03-20T07:31:34.328+00:00" />
<who>
<reference value="https://erp.zentral.erp.splitdns.ti-dienste.de/Device/1" />
<reference value="urn:uuid:b6fcc694-994f-40fa-968e-77a477bcc0b8" />
</who>
<sigFormat value="application/pkcs7-mime" />
<data value="QXVmZ3J1bmQgZGVyIENvcm9uYS1TaXR1YXRpb24ga29ubnRlIGhpZXIga3VyemZyaXN0aWcga2VpbiBCZWlzcGllbCBpbiBkZXIgTGFib3J1bWdlYnVuZyBkZXIgZ2VtYXRpayBlcnN0ZWxsdCB3ZWRlbi4gRGllc2VzIHdpcmQgbmFjaGdlcmVpY2h0LgoKSW5oYWx0bGljaCB1bmQgc3RydWt0dXJlbGwgaXN0IGRpZSBTZXJ2ZXJzaWduYXR1ciBkZXIgUXVpdHR1bmcgZWluZSBFbnZlbG9waW5nIENBZEVTLVNpZ25hdHVyLCBkaWUgZGVuIHNpZ25pZXJ0ZW4gRGF0ZW5zYXR6IGFuYWxvZyB6dXIgS29ubmVrdG9yLVNpZ25hdHVyIGlubmVyaGFsYiBkZXMgQVNOMS5Db250YWluZXJzIHRyYW5zcG9ydGllcnQu" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@
<meta>
<versionId value="1"/>
<lastUpdated value="2020-03-02T08:26:21.594+00:00"/>
<profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task|1.3"/>
<source value="#AsYR9plLkvONJAiv"/>
<profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task|1.3"/>
</meta>
<extension url="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_PrescriptionType">
<valueCodeableConcept>
<coding>
<system value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_FlowType" />
<code value="160" />
<display value="Muster 16 (Apothekenpflichtige Arzneimittel)" />
</coding>
</valueCodeableConcept>
<valueCoding>
<system value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_FlowType" />
<code value="160" />
<display value="Muster 16 (Apothekenpflichtige Arzneimittel)" />
</valueCoding>
</extension>
<identifier>
<use value="official"/>
Expand All @@ -31,7 +29,7 @@
<lastModified value="2020-03-02T08:25:05+00:00"/>
<performerType>
<coding>
<system value="urn:ietf:rfc:3986"/>
<system value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_OrganizationType"/>
<code value="urn:oid:1.2.276.0.76.4.54"/>
<display value="Öffentliche Apotheke"/>
</coding>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
HTTP/1.1 200 OK
Content-Type: application/fhir+xml;charset=utf-8

<Task xmlns="http://hl7.org/fhir">
<id value="160.123.456.789.123.58"/>
<meta>
Expand All @@ -10,19 +7,17 @@ Content-Type: application/fhir+xml;charset=utf-8
<profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task|1.3"/>
</meta>
<extension url="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_PrescriptionType">
<valueCodeableConcept>
<coding>
<system value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_FlowType" />
<code value="160" />
<display value="Muster 16 (Apothekenpflichtige Arzneimittel)" />
</coding>
</valueCodeableConcept>
<valueCoding>
<system value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_FlowType" />
<code value="160" />
<display value="Muster 16 (Apothekenpflichtige Arzneimittel)" />
</valueCoding>
</extension>
<extension url="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_ExpiryDate">
<valueDateTime value="2020-06-02" />
<valueDate value="2020-06-02" />
</extension>
<extension url="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AcceptDate">
<valueDateTime value="2020-04-01" />
<valueDate value="2020-04-01" />
</extension>
<identifier>
<use value="official"/>
Expand All @@ -34,18 +29,19 @@ Content-Type: application/fhir+xml;charset=utf-8
<system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_AccessCode"/>
<value value="777bea0e13cc9c42ceec14aec3ddee2263325dc2c6c699db115f58fe423607ea"/>
</identifier>
<identifier>
<use value="official"/>
<system value="http://fhir.de/sid/gkv/kvid-10"/>
<value value="X123456789"/>
</identifier>
<status value="ready"/>
<intent value="order"/>
<for>
<identifier>
<system value="http://fhir.de/sid/gkv/kvid-10"/>
<value value="X123456789"/>
</identifier>
</for>
<authoredOn value="2020-03-02T08:25:05+00:00"/>
<lastModified value="2020-03-02T08:45:05+00:00"/>
<performerType>
<coding>
<system value="urn:ietf:rfc:3986"/>
<system value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_OrganizationType"/>
<code value="urn:oid:1.2.276.0.76.4.54"/>
<display value="Öffentliche Apotheke"/>
</coding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"resourceType": "ChargeItem",
"id": "200.000.001.944.091.20",
"meta": {
"versionId": "1",
"lastUpdated": "2022-04-05T11:36:19.491+00:00",
"source": "#V4se2kvNDlSKuefe",
"lastUpdated": "2023-07-21T11:36:19.491+00:00",
"profile": [ "https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_ChargeItem|1.0" ]
},
"extension": [ {
Expand Down Expand Up @@ -46,7 +44,7 @@
"value": "3-SMC-B-Testkarte-883110000116873"
}
},
"enteredDate": "2023-04-21T07:12:29.316+00:00",
"enteredDate": "2023-07-21T07:12:29.316+00:00",
"supportingInformation": [ {
"reference": "urn:uuid:c81baa1d-0000-0000-0001-000000000000",
"display": "https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Communication_Reply|1.3"
]
},
"basedOn" : [ {
"reference" : "Task/160.000.226.119.741.52"
} ],
"status": "unknown",
"sent": "2020-03-12T18:01:10+00:00",
"recipient": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"resourceType": "Consent",
"meta": {
"profile": [
"https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Consent"
"https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Consent|1.0"
]
},
"status": "active",
Expand Down Expand Up @@ -40,7 +40,7 @@
"value": "X234567890"
}
},
"dateTime": "2021-06-01T07:13:00+05:00",
"dateTime": "2023-08-01T07:13:00+05:00",
"policyRule": {
"coding": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
HTTP/1.1 201 Created
Content-Type: application/fhir+json;charset=utf-8

{
"resourceType": "Consent",
"id": "0dcc5d4c-bf24-4c06-b02e-be5bc24587e2",
"meta": {
"profile": [
"https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Consent"
"https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Consent|1.0"
]
},
"status": "active",
Expand Down Expand Up @@ -44,7 +41,7 @@ Content-Type: application/fhir+json;charset=utf-8
"value": "X234567890"
}
},
"dateTime": "2021-06-01T07:13:00+05:00",
"dateTime": "2023-08-01T07:13:00+05:00",
"policyRule": {
"coding": [
{
Expand Down
Loading

0 comments on commit 905a10d

Please sign in to comment.