Skip to content

Commit

Permalink
Move fsh instances to own files
Browse files Browse the repository at this point in the history
  • Loading branch information
florianschoffke committed Jul 26, 2024
1 parent 4d33b9b commit 927eb09
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 106 deletions.
30 changes: 15 additions & 15 deletions Resources/fsh-generated/fsh-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,41 +27,41 @@
"outputFile": "Communication-3bbc2209-9c23-4553-986e-a5c9f69a39fb.json",
"fshName": "Communication_ChargChangeReply_Gkv",
"fshType": "Instance",
"fshFile": "profiles/GEM_ERPCHRG_PR_Communication_ChargChangeReply.fsh",
"startLine": 26,
"endLine": 40
"fshFile": "examples/Example_Communication_ChargChangeReply.fsh",
"startLine": 1,
"endLine": 15
},
{
"outputFile": "Communication-7bbc2209-9c23-4553-986e-a5c9f69a39fp.json",
"fshName": "Communication_ChargChangeReply_Pkv",
"fshType": "Instance",
"fshFile": "profiles/GEM_ERPCHRG_PR_Communication_ChargChangeReply.fsh",
"startLine": 42,
"endLine": 56
"fshFile": "examples/Example_Communication_ChargChangeReply.fsh",
"startLine": 17,
"endLine": 31
},
{
"outputFile": "Communication-b4cf7f71-3ade-40ab-97a9-929f95af29f2.json",
"fshName": "Communication_ChargChangeRequest_Gkv",
"fshType": "Instance",
"fshFile": "profiles/GEM_ERPCHRG_PR_Communication_ChargChangeReq.fsh",
"startLine": 28,
"endLine": 42
"fshFile": "examples/Example_Communication_ChargChangeRequest.fsh",
"startLine": 1,
"endLine": 15
},
{
"outputFile": "Communication-b4cf7f71-3ade-40ab-97a9-929f95af29fp.json",
"fshName": "Communication_ChargChangeRequest_Pkv",
"fshType": "Instance",
"fshFile": "profiles/GEM_ERPCHRG_PR_Communication_ChargChangeReq.fsh",
"startLine": 45,
"endLine": 59
"fshFile": "examples/Example_Communication_ChargChangeRequest.fsh",
"startLine": 18,
"endLine": 32
},
{
"outputFile": "Consent-0dcc5d4c-bf24-4c06-b02e-be5bc24587e2.json",
"fshName": "ChargeItemConsent",
"fshType": "Instance",
"fshFile": "profiles/GEM_ERPCHRG_PR_Consent.fsh",
"startLine": 22,
"endLine": 38
"fshFile": "examples/Example_Consent.fsh",
"startLine": 1,
"endLine": 17
},
{
"outputFile": "StructureDefinition-GEM-ERPCHRG-EX-MarkingFlag.json",
Expand Down
10 changes: 5 additions & 5 deletions Resources/fsh-generated/fsh-index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ Output File Name
ChargeItem-ChargeItem-GET-Completed.json ChargeItem-GET-Completed Instance examples/Example_ChargeItem.fsh 1 - 29
ChargeItem-ChargeItem-POST-Binary.json ChargeItem-POST-Binary Instance examples/Example_ChargeItem.fsh 31 - 49
CodeSystem-GEM-ERPCHRG-CS-ConsentType.json GEM_ERPCHRG_CS_ConsentType CodeSystem codesystems/GEM_ERPCHRG_CS_ConsentType.fsh 1 - 7
Communication-3bbc2209-9c23-4553-986e-a5c9f69a39fb.json Communication_ChargChangeReply_Gkv Instance profiles/GEM_ERPCHRG_PR_Communication_ChargChangeReply.fsh 26 - 40
Communication-7bbc2209-9c23-4553-986e-a5c9f69a39fp.json Communication_ChargChangeReply_Pkv Instance profiles/GEM_ERPCHRG_PR_Communication_ChargChangeReply.fsh 42 - 56
Communication-b4cf7f71-3ade-40ab-97a9-929f95af29f2.json Communication_ChargChangeRequest_Gkv Instance profiles/GEM_ERPCHRG_PR_Communication_ChargChangeReq.fsh 28 - 42
Communication-b4cf7f71-3ade-40ab-97a9-929f95af29fp.json Communication_ChargChangeRequest_Pkv Instance profiles/GEM_ERPCHRG_PR_Communication_ChargChangeReq.fsh 45 - 59
Consent-0dcc5d4c-bf24-4c06-b02e-be5bc24587e2.json ChargeItemConsent Instance profiles/GEM_ERPCHRG_PR_Consent.fsh 22 - 38
Communication-3bbc2209-9c23-4553-986e-a5c9f69a39fb.json Communication_ChargChangeReply_Gkv Instance examples/Example_Communication_ChargChangeReply.fsh 1 - 15
Communication-7bbc2209-9c23-4553-986e-a5c9f69a39fp.json Communication_ChargChangeReply_Pkv Instance examples/Example_Communication_ChargChangeReply.fsh 17 - 31
Communication-b4cf7f71-3ade-40ab-97a9-929f95af29f2.json Communication_ChargChangeRequest_Gkv Instance examples/Example_Communication_ChargChangeRequest.fsh 1 - 15
Communication-b4cf7f71-3ade-40ab-97a9-929f95af29fp.json Communication_ChargChangeRequest_Pkv Instance examples/Example_Communication_ChargChangeRequest.fsh 18 - 32
Consent-0dcc5d4c-bf24-4c06-b02e-be5bc24587e2.json ChargeItemConsent Instance examples/Example_Consent.fsh 1 - 17
StructureDefinition-GEM-ERPCHRG-EX-MarkingFlag.json GEM_ERPCHRG_EX_MarkingFlag Extension extensions/GEM_ERPCHRG_EX_MarkingFlag.fsh 1 - 37
StructureDefinition-GEM-ERPCHRG-PR-ChargeItem.json GEM_ERPCHRG_PR_ChargeItem Profile profiles/GEM_ERPCHRG_PR_ChargeItem.fsh 1 - 68
StructureDefinition-GEM-ERPCHRG-PR-Communication-ChargChangeReply.json GEM_ERPCHRG_PR_Communication_ChargChangeReply Profile profiles/GEM_ERPCHRG_PR_Communication_ChargChangeReply.fsh 1 - 24
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Instance: Communication_ChargChangeReply_Gkv
InstanceOf: GEM_ERPCHRG_PR_Communication_ChargChangeReply
Title: "Communication message sent by pharmacy to patient in response to a previous ChargeItem-related message"
Usage: #example
* id = "3bbc2209-9c23-4553-986e-a5c9f69a39fb"
* meta.profile[+] = "https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Communication_ChargChangeReply|1.0"
* meta.tag.display = "Communication message sent by pharmacy to patient in response to a previous ChargeItem-related message"
* basedOn.reference = "ChargeItem/a51520ec-0899-404f-bb97-fe7d461f90a8"
* status = #unknown
* sender.identifier.system = "https://gematik.de/fhir/sid/telematik-id"
* sender.identifier.value = "3-SMC-B-Testkarte-883110000123465"
* recipient[+].identifier.system = "http://fhir.de/sid/gkv/kvid-10"
* recipient[=].identifier.value = "X234567890"
* sent = "2022-04-29T13:46:30.128+02:00"
* payload.contentString = "Erledigt."

Instance: Communication_ChargChangeReply_Pkv
InstanceOf: GEM_ERPCHRG_PR_Communication_ChargChangeReply
Title: "Communication message sent by pharmacy to patient in response to a previous ChargeItem-related message"
Usage: #example
* id = "7bbc2209-9c23-4553-986e-a5c9f69a39fp"
* meta.profile[+] = "https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Communication_ChargChangeReply|1.0"
* meta.tag.display = "Communication message sent by pharmacy to patient in response to a previous ChargeItem-related message"
* basedOn.reference = "ChargeItem/a51520ec-0899-404f-bb97-fe7d461f90ap"
* status = #unknown
* sender.identifier.system = "https://gematik.de/fhir/sid/telematik-id"
* sender.identifier.value = "3-SMC-B-Testkarte-883110000123465"
* recipient[+].identifier.system = $identifier-kvid-10
* recipient[=].identifier.value = "X234567890"
* sent = "2022-07-04T13:46:30.128+02:00"
* payload.contentString = "Erledigt."
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Instance: Communication_ChargChangeRequest_Gkv
InstanceOf: GEM_ERPCHRG_PR_Communication_ChargChangeReq
Title: "Communication message sent by patient to pharmacy to request the change of an existing ChargeItem by providing the AccessCode"
Usage: #example
* id = "b4cf7f71-3ade-40ab-97a9-929f95af29f2"
* meta.profile[+] = "https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Communication_ChargChangeReq|1.0"
* meta.tag.display = "Communication message sent by patient to pharmacy to request the change of an existing ChargeItem by providing the AccessCode"
* basedOn.reference = "ChargeItem/a51520ec-0899-404f-bb97-fe7d461f90a8?ac=777bea0e13cc9c42ceec14aec3ddee2263325dc2c6c699db115f58fe423607ea"
* status = #unknown
* recipient[+].identifier.system = "https://gematik.de/fhir/sid/telematik-id"
* recipient[=].identifier.value = "3-SMC-B-Testkarte-883110000123465"
* sender.identifier.system = "http://fhir.de/sid/gkv/kvid-10"
* sender.identifier.value = "X234567890"
* sent = "2020-04-29T13:43:30.128+02:00"
* payload.contentString = "Bitte meinen Namen in Günther ändern, Waltraud ist falsch."


Instance: Communication_ChargChangeRequest_Pkv
InstanceOf: GEM_ERPCHRG_PR_Communication_ChargChangeReq
Title: "Communication message sent by patient to pharmacy to request the change of an existing ChargeItem by providing the AccessCode"
Usage: #example
* id = "b4cf7f71-3ade-40ab-97a9-929f95af29fp"
* meta.profile[+] = "https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Communication_ChargChangeReq|1.0"
* meta.tag.display = "Communication message sent by patient to pharmacy to request the change of an existing ChargeItem by providing the AccessCode"
* basedOn.reference = "ChargeItem/a51520ec-0899-404f-bb97-fe7d461f90a8?ac=777bea0e13cc9c42ceec14aec3ddee2263325dc2c6c699db115f58fe423607ea"
* status = #unknown
* recipient[+].identifier.system = "https://gematik.de/fhir/sid/telematik-id"
* recipient[=].identifier.value = "3-SMC-B-Testkarte-883110000123465"
* sender.identifier.system = $identifier-kvid-10
* sender.identifier.value = "X234567890"
* sent = "2020-07-04T13:43:30.128+02:00"
* payload.contentString = "Bitte meinen Namen in Günther ändern, Waltraud ist falsch."
17 changes: 17 additions & 0 deletions Resources/input/fsh/examples/Example_Consent.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Instance: ChargeItemConsent
InstanceOf: GEM_ERPCHRG_PR_Consent
Title: "Consent to store digital ChargeItem"
Usage: #example
* id = "0dcc5d4c-bf24-4c06-b02e-be5bc24587e2"
* meta.profile = "https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Consent|1.0"
* status = #active
* scope = http://terminology.hl7.org/CodeSystem/consentscope#patient-privacy "Privacy Consent"
* category = https://gematik.de/fhir/erpchrg/CodeSystem/GEM_ERPCHRG_CS_ConsentType#CHARGCONS "Consent for saving electronic charge item"
* patient[+].identifier.type.coding[+].system = "http://fhir.de/CodeSystem/identifier-type-de-basis"
* patient[=].identifier.type.coding[=].code = #KVZ10
* patient[=].identifier.system = $identifier-kvid-10
* patient[=].identifier.value = "X234567890"
* patient[=].identifier.assigner.identifier.system = "http://fhir.de/sid/arge-ik/iknr"
* patient[=].identifier.assigner.identifier.value = "168140950"
* dateTime = "2022-06-01T07:13:00+05:00"
* policyRule = http://terminology.hl7.org/CodeSystem/v3-ActCode#OPTIN
Original file line number Diff line number Diff line change
Expand Up @@ -21,36 +21,4 @@ Description: "Ressource used for the communication to reply to a change request
* sender.identifier 1..1
* sender.identifier only IdentifierTelematikId
* payload 0..1
* payload.content[x] only string

Instance: Communication_ChargChangeReply_Gkv
InstanceOf: GEM_ERPCHRG_PR_Communication_ChargChangeReply
Title: "Communication message sent by pharmacy to patient in response to a previous ChargeItem-related message"
Usage: #example
* id = "3bbc2209-9c23-4553-986e-a5c9f69a39fb"
* meta.profile[+] = "https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Communication_ChargChangeReply|1.0"
* meta.tag.display = "Communication message sent by pharmacy to patient in response to a previous ChargeItem-related message"
* basedOn.reference = "ChargeItem/a51520ec-0899-404f-bb97-fe7d461f90a8"
* status = #unknown
* sender.identifier.system = "https://gematik.de/fhir/sid/telematik-id"
* sender.identifier.value = "3-SMC-B-Testkarte-883110000123465"
* recipient[+].identifier.system = "http://fhir.de/sid/gkv/kvid-10"
* recipient[=].identifier.value = "X234567890"
* sent = "2022-04-29T13:46:30.128+02:00"
* payload.contentString = "Erledigt."

Instance: Communication_ChargChangeReply_Pkv
InstanceOf: GEM_ERPCHRG_PR_Communication_ChargChangeReply
Title: "Communication message sent by pharmacy to patient in response to a previous ChargeItem-related message"
Usage: #example
* id = "7bbc2209-9c23-4553-986e-a5c9f69a39fp"
* meta.profile[+] = "https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Communication_ChargChangeReply|1.0"
* meta.tag.display = "Communication message sent by pharmacy to patient in response to a previous ChargeItem-related message"
* basedOn.reference = "ChargeItem/a51520ec-0899-404f-bb97-fe7d461f90ap"
* status = #unknown
* sender.identifier.system = "https://gematik.de/fhir/sid/telematik-id"
* sender.identifier.value = "3-SMC-B-Testkarte-883110000123465"
* recipient[+].identifier.system = $identifier-kvid-10
* recipient[=].identifier.value = "X234567890"
* sent = "2022-07-04T13:46:30.128+02:00"
* payload.contentString = "Erledigt."
* payload.content[x] only string
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,3 @@ Description: "Ressource used for the communication of Change Request on an exist
* payload 0..1
* payload.content[x] only string

Instance: Communication_ChargChangeRequest_Gkv
InstanceOf: GEM_ERPCHRG_PR_Communication_ChargChangeReq
Title: "Communication message sent by patient to pharmacy to request the change of an existing ChargeItem by providing the AccessCode"
Usage: #example
* id = "b4cf7f71-3ade-40ab-97a9-929f95af29f2"
* meta.profile[+] = "https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Communication_ChargChangeReq|1.0"
* meta.tag.display = "Communication message sent by patient to pharmacy to request the change of an existing ChargeItem by providing the AccessCode"
* basedOn.reference = "ChargeItem/a51520ec-0899-404f-bb97-fe7d461f90a8?ac=777bea0e13cc9c42ceec14aec3ddee2263325dc2c6c699db115f58fe423607ea"
* status = #unknown
* recipient[+].identifier.system = "https://gematik.de/fhir/sid/telematik-id"
* recipient[=].identifier.value = "3-SMC-B-Testkarte-883110000123465"
* sender.identifier.system = "http://fhir.de/sid/gkv/kvid-10"
* sender.identifier.value = "X234567890"
* sent = "2020-04-29T13:43:30.128+02:00"
* payload.contentString = "Bitte meinen Namen in Günther ändern, Waltraud ist falsch."


Instance: Communication_ChargChangeRequest_Pkv
InstanceOf: GEM_ERPCHRG_PR_Communication_ChargChangeReq
Title: "Communication message sent by patient to pharmacy to request the change of an existing ChargeItem by providing the AccessCode"
Usage: #example
* id = "b4cf7f71-3ade-40ab-97a9-929f95af29fp"
* meta.profile[+] = "https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Communication_ChargChangeReq|1.0"
* meta.tag.display = "Communication message sent by patient to pharmacy to request the change of an existing ChargeItem by providing the AccessCode"
* basedOn.reference = "ChargeItem/a51520ec-0899-404f-bb97-fe7d461f90a8?ac=777bea0e13cc9c42ceec14aec3ddee2263325dc2c6c699db115f58fe423607ea"
* status = #unknown
* recipient[+].identifier.system = "https://gematik.de/fhir/sid/telematik-id"
* recipient[=].identifier.value = "3-SMC-B-Testkarte-883110000123465"
* sender.identifier.system = $identifier-kvid-10
* sender.identifier.value = "X234567890"
* sent = "2020-07-04T13:43:30.128+02:00"
* payload.contentString = "Bitte meinen Namen in Günther ändern, Waltraud ist falsch."
22 changes: 1 addition & 21 deletions Resources/input/fsh/profiles/GEM_ERPCHRG_PR_Consent.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,4 @@ Id: GEM-ERPCHRG-PR-Consent
* patient.identifier.assigner.display 0..1
* dateTime 1..
* policyRule MS
* policyRule from http://terminology.hl7.org/ValueSet/v3-ActCode



Instance: ChargeItemConsent
InstanceOf: GEM_ERPCHRG_PR_Consent
Title: "Consent to store digital ChargeItem"
Usage: #example
* id = "0dcc5d4c-bf24-4c06-b02e-be5bc24587e2"
* meta.profile = "https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_Consent|1.0"
* status = #active
* scope = http://terminology.hl7.org/CodeSystem/consentscope#patient-privacy "Privacy Consent"
* category = https://gematik.de/fhir/erpchrg/CodeSystem/GEM_ERPCHRG_CS_ConsentType#CHARGCONS "Consent for saving electronic charge item"
* patient[+].identifier.type.coding[+].system = "http://fhir.de/CodeSystem/identifier-type-de-basis"
* patient[=].identifier.type.coding[=].code = #KVZ10
* patient[=].identifier.system = $identifier-kvid-10
* patient[=].identifier.value = "X234567890"
* patient[=].identifier.assigner.identifier.system = "http://fhir.de/sid/arge-ik/iknr"
* patient[=].identifier.assigner.identifier.value = "168140950"
* dateTime = "2022-06-01T07:13:00+05:00"
* policyRule = http://terminology.hl7.org/CodeSystem/v3-ActCode#OPTIN
* policyRule from http://terminology.hl7.org/ValueSet/v3-ActCode

0 comments on commit 927eb09

Please sign in to comment.