Skip to content

Commit

Permalink
Add DateTime Rule Set
Browse files Browse the repository at this point in the history
  • Loading branch information
florianschoffke committed Dec 3, 2024
1 parent d6d50aa commit f60e67a
Show file tree
Hide file tree
Showing 14 changed files with 45 additions and 20 deletions.
6 changes: 3 additions & 3 deletions Resources/fsh-generated/fsh-index.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@
},
{
"outputFile": "Consent-0dcc5d4c-bf24-4c06-b02e-be5bc24587e2.json",
"fshName": "ChargeItemConsent",
"fshName": "ChargeItemConsent-Response",
"fshType": "Instance",
"fshFile": "examples/Example_Consent.fsh",
"startLine": 1,
"endLine": 14
"startLine": 16,
"endLine": 29
},
{
"outputFile": "StructureDefinition-GEM-ERPCHRG-EX-MarkingFlag.json",
Expand Down
2 changes: 1 addition & 1 deletion Resources/fsh-generated/fsh-index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Communication-3bbc2209-9c23-4553-986e-a5c9f69a39fb.json Communic
Communication-7bbc2209-9c23-4553-986e-a5c9f69a39fp.json Communication_ChargChangeReply_Pkv Instance examples/Example_Communication_ChargChangeReply.fsh 16 - 29
Communication-b4cf7f71-3ade-40ab-97a9-929f95af29f2.json Communication_ChargChangeRequest_Gkv Instance examples/Example_Communication_ChargChangeRequest.fsh 1 - 14
Communication-b4cf7f71-3ade-40ab-97a9-929f95af29fp.json Communication_ChargChangeRequest_Pkv Instance examples/Example_Communication_ChargChangeRequest.fsh 17 - 30
Consent-0dcc5d4c-bf24-4c06-b02e-be5bc24587e2.json ChargeItemConsent Instance examples/Example_Consent.fsh 1 - 14
Consent-0dcc5d4c-bf24-4c06-b02e-be5bc24587e2.json ChargeItemConsent-Response Instance examples/Example_Consent.fsh 16 - 29
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 - 71
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
Expand Up @@ -70,5 +70,5 @@
}
]
},
"enteredDate": "2022-12-16T06:13:00+05:00"
"enteredDate": "2025-10-01T15:29:00.434+00:00"
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@
}
]
},
"enteredDate": "2022-12-16T07:13:00+05:00"
"enteredDate": "2025-10-01T15:29:00.434+00:00"
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"reference": "ChargeItem/a51520ec-0899-404f-bb97-fe7d461f90a8"
}
],
"sent": "2022-04-29T13:46:30.128+02:00",
"sent": "2025-10-01T15:29:00.434+00:00",
"payload": [
{
"contentString": "Erledigt."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"reference": "ChargeItem/a51520ec-0899-404f-bb97-fe7d461f90ap"
}
],
"sent": "2022-07-04T13:46:30.128+02:00",
"sent": "2025-10-01T15:29:00.434+00:00",
"payload": [
{
"contentString": "Erledigt."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"reference": "ChargeItem/a51520ec-0899-404f-bb97-fe7d461f90a8?ac=777bea0e13cc9c42ceec14aec3ddee2263325dc2c6c699db115f58fe423607ea"
}
],
"sent": "2020-04-29T13:43:30.128+02:00",
"sent": "2025-10-01T15:29:00.434+00:00",
"payload": [
{
"contentString": "Bitte meinen Namen in Günther ändern, Waltraud ist falsch."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"reference": "ChargeItem/a51520ec-0899-404f-bb97-fe7d461f90a8?ac=777bea0e13cc9c42ceec14aec3ddee2263325dc2c6c699db115f58fe423607ea"
}
],
"sent": "2020-07-04T13:43:30.128+02:00",
"sent": "2025-10-01T15:29:00.434+00:00",
"payload": [
{
"contentString": "Bitte meinen Namen in Günther ändern, Waltraud ist falsch."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
]
}
],
"dateTime": "2022-06-01T07:13:00+05:00",
"dateTime": "2025-10-01T15:29:00.434+00:00",
"policyRule": {
"coding": [
{
Expand Down
4 changes: 2 additions & 2 deletions Resources/input/fsh/examples/Example_ChargeItem.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Usage: #example
* code = http://terminology.hl7.org/CodeSystem/data-absent-reason#not-applicable
* subject.identifier.value = "X234567890"
* enterer.identifier.value = "3-15.2.1456789123.191"
* enteredDate = "2022-12-16T06:13:00+05:00"
* insert DateTimeStamp(enteredDate)
* supportingInformation[dispenseItemBundle] = Reference(Bundle/72bd741c-7ad8-41d8-97c3-9aabbdd0f5b4)
* supportingInformation[dispenseItemBundle].display = $DAV-PKV-PR-ERP-AbgabedatenBundle
* supportingInformation[receiptBundle] = Reference(Bundle/200.000.000.000.000.01)
Expand All @@ -35,6 +35,6 @@ Usage: #example
* subject.identifier.type.coding = http://fhir.de/CodeSystem/identifier-type-de-basis#PKV
* enterer.identifier.system = $identifier-telematik-id
* enterer.identifier.value = "3-15.2.1456789123.191"
* enteredDate = "2022-12-16T07:13:00+05:00"
* insert DateTimeStamp(enteredDate)
* supportingInformation[dispenseItemBinary].reference = "#c8720f99-6641-432d-94be-d49eaa164755"
* supportingInformation[dispenseItemBinary].display = "Binary"
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Usage: #example
* 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"
* insert DateTimeStamp(sent)
* payload.contentString = "Erledigt."

Instance: Communication_ChargChangeReply_Pkv
Expand All @@ -25,5 +25,5 @@ Usage: #example
* 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"
* insert DateTimeStamp(sent)
* payload.contentString = "Erledigt."
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Usage: #example
* 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"
* insert DateTimeStamp(sent)
* payload.contentString = "Bitte meinen Namen in Günther ändern, Waltraud ist falsch."


Expand All @@ -26,5 +26,5 @@ Usage: #example
* 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"
* insert DateTimeStamp(sent)
* payload.contentString = "Bitte meinen Namen in Günther ändern, Waltraud ist falsch."
19 changes: 17 additions & 2 deletions Resources/input/fsh/examples/Example_Consent.fsh
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
Instance: ChargeItemConsent
/* TODO: Merge approved datetime branch into this branch and build
Instance: ChargeItemConsent-Request
InstanceOf: GEM_ERPCHRG_PR_Consent
Title: "Consent to store digital ChargeItem"
Usage: #example
* status = #active
* scope = http://terminology.hl7.org/CodeSystem/consentscope#patient-privacy "Privacy Consent"
* category = GEM_ERPCHRG_CS_ConsentType#CHARGCONS "Consent for saving electronic charge item"
* 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"
* policyRule = http://terminology.hl7.org/CodeSystem/v3-ActCode#OPTIN
*/

Instance: ChargeItemConsent-Response
InstanceOf: GEM_ERPCHRG_PR_Consent
Title: "Consent to store digital ChargeItem"
Usage: #example
Expand All @@ -10,5 +25,5 @@ Usage: #example
* 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"
* insert DateTimeStamp(dateTime)
* policyRule = http://terminology.hl7.org/CodeSystem/v3-ActCode#OPTIN
12 changes: 11 additions & 1 deletion Resources/input/fsh/rulesets.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,14 @@ RuleSet: ValueSet(name)
* insert Versioning
* ^publisher = "gematik GmbH"
* ^contact.telecom.system = #url
* ^contact.telecom.value = "http://www.gematik.de"
* ^contact.telecom.value = "http://www.gematik.de"

// Dates for Examples (Date of actual release)
RuleSet: Date(field)
* {field} = "2025-10-01"

RuleSet: DateTime(field)
* {field} = "2025-10-01T15:29:00+00:00"

RuleSet: DateTimeStamp(field)
* {field} = "2025-10-01T15:29:00.434+00:00"

0 comments on commit f60e67a

Please sign in to comment.