Skip to content

Commit

Permalink
ruleset for codesystem and valueset
Browse files Browse the repository at this point in the history
  • Loading branch information
florianschoffke committed Sep 5, 2023
1 parent 49df103 commit 2700400
Show file tree
Hide file tree
Showing 22 changed files with 50 additions and 155 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"code": {
"coding": [
{
"system": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_DocumentType",
"system": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_CS_DocumentType",
"code": "1",
"display": "Health Care Provider Prescription"
}
Expand All @@ -65,7 +65,7 @@
"code": {
"coding": [
{
"system": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_DocumentType",
"system": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_CS_DocumentType",
"code": "4",
"display": "Approval to prescribe Narcotics"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "CodeSystem",
"status": "active",
"status": "draft",
"content": "complete",
"name": "GEM_ERP_CS_AvailabilityStatus",
"id": "GEM-ERP-CS-AvailabilityStatus",
Expand Down Expand Up @@ -33,8 +33,9 @@
"display": "unbekannt"
}
],
"version": "1.2",
"experimental": false,
"publisher": "gematik GmbH",
"version": "1.3",
"contact": [
{
"telecom": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "CodeSystem",
"status": "active",
"status": "draft",
"content": "complete",
"name": "GEM_ERP_CS_DocumentType",
"id": "GEM-ERP-CS-DocumentType",
Expand Down Expand Up @@ -29,8 +29,9 @@
"display": "Documentation of Narcotics Approval"
}
],
"version": "1.2",
"experimental": false,
"publisher": "gematik GmbH",
"version": "1.3",
"contact": [
{
"telecom": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "CodeSystem",
"status": "active",
"status": "draft",
"content": "complete",
"name": "GEM_ERP_CS_FlowType",
"id": "GEM-ERP-CS-FlowType",
Expand Down Expand Up @@ -45,8 +45,9 @@
"display": "reserviert für Pharmazeutische Dienstleistungen bzw. Impfungen durch Apotheker"
}
],
"version": "1.2",
"experimental": false,
"publisher": "gematik GmbH",
"version": "1.3",
"contact": [
{
"telecom": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "CodeSystem",
"status": "active",
"status": "draft",
"content": "complete",
"name": "GEM_ERP_CS_OrganizationType",
"id": "GEM-ERP-CS-OrganizationType",
Expand All @@ -13,8 +13,9 @@
"display": "Öffentliche Apotheke"
}
],
"version": "1.2",
"experimental": false,
"publisher": "gematik GmbH",
"version": "1.3",
"contact": [
{
"telecom": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"max": "1",
"binding": {
"strength": "required",
"valueSet": "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"
"valueSet": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_DocumentType"
}
},
{
Expand Down Expand Up @@ -170,7 +170,7 @@
"id": "Composition.section:ePrescription.code.coding.system",
"path": "Composition.section.code.coding.system",
"min": 1,
"fixedUri": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_DocumentType",
"fixedUri": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_CS_DocumentType",
"mustSupport": true
},
{
Expand Down Expand Up @@ -236,7 +236,7 @@
"id": "Composition.section:BfArM_Approval.code.coding.system",
"path": "Composition.section.code.coding.system",
"min": 1,
"fixedUri": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_DocumentType",
"fixedUri": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_CS_DocumentType",
"mustSupport": true
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"max": "1",
"binding": {
"strength": "required",
"valueSet": "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"
"valueSet": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_DocumentType"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
"path": "Task.input.type.coding",
"binding": {
"strength": "required",
"valueSet": "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"
"valueSet": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_DocumentType"
}
},
{
Expand Down Expand Up @@ -297,7 +297,7 @@
"path": "Task.input.type.coding",
"binding": {
"strength": "required",
"valueSet": "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"
"valueSet": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_DocumentType"
}
},
{
Expand Down Expand Up @@ -352,7 +352,7 @@
"path": "Task.output.type.coding",
"binding": {
"strength": "required",
"valueSet": "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"
"valueSet": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_DocumentType"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"resourceType": "ValueSet",
"status": "active",
"status": "draft",
"name": "GEM_ERP_VS_AvailabilityStatus",
"id": "GEM-ERP-VS-AvailabilityStatus",
"title": "ValueSet of AvailabilityStatus Codes",
"description": "Type of the availability status for medication availability request",
"url": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_AvailabilityStatus",
"version": "1.2",
"experimental": false,
"publisher": "gematik GmbH",
"version": "1.3",
"contact": [
{
"telecom": [
Expand All @@ -18,6 +19,7 @@
]
}
],
"copyright": "gematik GmbH",
"compose": {
"include": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"resourceType": "ValueSet",
"status": "active",
"status": "draft",
"name": "GEM_ERP_VS_DocumentType",
"id": "GEM-ERP-VS-DocumentType",
"title": "ValueSet of Documenttype Codes",
"description": "Type of document depending on the recipient.",
"url": "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType",
"version": "1.2",
"url": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_DocumentType",
"experimental": false,
"publisher": "gematik GmbH",
"version": "1.3",
"contact": [
{
"telecom": [
Expand All @@ -18,6 +19,7 @@
]
}
],
"copyright": "gematik GmbH",
"compose": {
"include": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"resourceType": "ValueSet",
"status": "active",
"status": "draft",
"name": "GEM_ERP_VS_FlowType",
"id": "GEM-ERP-VS-FlowType",
"title": "ValueSet of Flowtype Codes",
"description": "Shows the different types of the ePrescription according to the prescription forms.",
"url": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_FlowType",
"version": "1.2",
"experimental": false,
"publisher": "gematik GmbH",
"version": "1.3",
"contact": [
{
"telecom": [
Expand All @@ -18,6 +19,7 @@
]
}
],
"copyright": "gematik GmbH",
"compose": {
"include": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"resourceType": "ValueSet",
"status": "active",
"status": "draft",
"name": "GEM_ERP_VS_OrganizationType",
"id": "GEM-ERP-VS-OrganizationType",
"title": "ValueSet of Organizationtype Codes",
"description": "Type of Organiziation",
"url": "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_OrganizationType",
"version": "1.2",
"experimental": false,
"publisher": "gematik GmbH",
"version": "1.3",
"contact": [
{
"telecom": [
Expand All @@ -18,6 +19,7 @@
]
}
],
"copyright": "gematik GmbH",
"compose": {
"include": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@ CodeSystem: GEM_ERP_CS_AvailabilityStatus
Id: GEM-ERP-CS-AvailabilityStatus
Title: "CodeSystem of AvailabilityStatus"
Description: "Type of the availability status for medication availability request."
* ^url = "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_AvailabilityStatus"
* ^version = "1.2"
* ^status = #active
* ^publisher = "gematik GmbH"
* ^contact.telecom.system = #url
* ^contact.telecom.value = "http://www.gematik.de"
* ^copyright = "gematik GmbH"
* ^caseSensitive = true
* ^content = #complete
* insert MetaCodeSystem(GEM_ERP_CS_AvailabilityStatus)
* #10 "sofort verfügbar"
* #20 "noch Heute verfügbar"
* #30 "am nächsten Werktag - vormittags"
Expand Down
10 changes: 1 addition & 9 deletions Resources/input/fsh/codesystems/GEM_ERP_CS_DocumentType.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@ CodeSystem: GEM_ERP_CS_DocumentType
Id: GEM-ERP-CS-DocumentType
Title: "CodeSystem of Documenttypes"
Description: "Type of document depending on the recipient of the Bundle."
* ^url = "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_DocumentType"
* ^version = "1.2"
* ^status = #active
* ^publisher = "gematik GmbH"
* ^contact.telecom.system = #url
* ^contact.telecom.value = "http://www.gematik.de"
* ^copyright = "gematik GmbH"
* ^caseSensitive = true
* ^content = #complete
* insert MetaCodeSystem(GEM_ERP_CS_DocumentType)
* #1 "Health Care Provider Prescription"
* #2 "Patient Confirmation"
* #3 "Receipt"
Expand Down
10 changes: 1 addition & 9 deletions Resources/input/fsh/codesystems/GEM_ERP_CS_FlowType.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@ CodeSystem: GEM_ERP_CS_FlowType
Id: GEM-ERP-CS-FlowType
Title: "CodeSystem of Flowtypes"
Description: "Shows the different types of the ePrescription according to the prescription forms."
* ^url = "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_FlowType"
* ^version = "1.2"
* ^status = #active
* ^publisher = "gematik GmbH"
* ^contact.telecom.system = #url
* ^contact.telecom.value = "http://www.gematik.de"
* ^copyright = "gematik GmbH"
* ^caseSensitive = true
* ^content = #complete
* insert MetaCodeSystem(GEM_ERP_CS_FlowType)
* #160 "Muster 16 (Apothekenpflichtige Arzneimittel)"
* #165 "Muster 16 (Betäubungsmittel)"
* #166 "Muster 16 (T-Rezepte)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,5 @@ CodeSystem: GEM_ERP_CS_OrganizationType
Id: GEM-ERP-CS-OrganizationType
Title: "CodeSystem of Organizationtype Codes"
Description: "Type of Organiziation where to get e-prescriptions dispensed"
* ^url = "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_OrganizationType"
* ^version = "1.2"
* ^status = #active
* ^publisher = "gematik GmbH"
* ^contact.telecom.system = #url
* ^contact.telecom.value = "http://www.gematik.de"
* ^copyright = "gematik GmbH"
* ^caseSensitive = true
* insert MetaCodeSystem(GEM_ERP_CS_OrganizationType)
* #urn:oid:1.2.276.0.76.4.54 "Öffentliche Apotheke"
3 changes: 0 additions & 3 deletions Resources/input/fsh/profiles/GEM_ERP_PR_Composition.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ Description: "Upon completion of the ePrescription workflow, the prescription fi
* type MS
* type ^short = "Document Type = \"Receipt\""
* type.coding 1..1
//* type.coding.system 1..
//* type.coding.system = "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_DocumentType" (exactly)
//* type.coding.code 1..
* type.coding from GEM_ERP_VS_DocumentType (required)
* type.coding.code = #3 (exactly)
* type.coding.display = "Receipt" (exactly)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ Description: "Upon completion of the ePrescription workflow, the prescription fi
* type MS
* type ^short = "Document Type = \"Documentation of Narcotics Approval\""
* type.coding 1..1
//* type.coding.system 1..
//* type.coding.system = "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_DocumentType" (exactly)
//* type.coding.code 1..
* type.coding from GEM_ERP_VS_DocumentType (required)
* type.coding.code = #5 (exactly)
* type.coding.display = "Documentation of Narcotics Approval" (exactly)
Expand All @@ -40,7 +37,7 @@ Description: "Upon completion of the ePrescription workflow, the prescription fi
* section[ePrescription].code 1..1 MS
* section[ePrescription].code.coding 1..1 MS
* section[ePrescription].code.coding.system 1..1 MS
* section[ePrescription].code.coding.system = "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_DocumentType" (exactly)
* section[ePrescription].code.coding.system = "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_CS_DocumentType" (exactly)
* section[ePrescription].code.coding.code 1.. MS
* section[ePrescription].code.coding.code = #1 (exactly)
* section[ePrescription].code.coding.display = "Health Care Provider Prescription" (exactly)
Expand All @@ -53,7 +50,7 @@ Description: "Upon completion of the ePrescription workflow, the prescription fi
* section[BfArM_Approval].code 1..1 MS
* section[BfArM_Approval].code.coding 1..1 MS
* section[BfArM_Approval].code.coding.system 1..1 MS
* section[BfArM_Approval].code.coding.system = "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_DocumentType" (exactly)
* section[BfArM_Approval].code.coding.system = "https://gematik.de/fhir/erp/ValueSet/GEM_ERP_CS_DocumentType" (exactly)
* section[BfArM_Approval].code.coding.code 1.. MS
* section[BfArM_Approval].code.coding.code = #4 (exactly)
* section[BfArM_Approval].code.coding.display = "Approval to prescribe Narcotics" (exactly)
Expand All @@ -75,6 +72,6 @@ Usage: #inline
* event.period.start = "2022-03-18T15:28:00+00:00"
* event.period.end = "2022-03-18T15:29:00+00:00"
* section[ePrescription].entry.reference = "281a985c-f25b-4aae-91a6-41ad744080b0" // TODO: Neue Verordnung mit WF 200
* section[ePrescription].code.coding = https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_DocumentType#1 "Health Care Provider Prescription"
* section[ePrescription].code.coding = https://gematik.de/fhir/erp/ValueSet/GEM_ERP_CS_DocumentType#1 "Health Care Provider Prescription"
* section[BfArM_Approval].entry.reference = "PractitionersNarcoticsApproval"
* section[BfArM_Approval].code.coding = https://gematik.de/fhir/erp/ValueSet/GEM_ERP_VS_DocumentType#4 "Approval to prescribe Narcotics"
* section[BfArM_Approval].code.coding = https://gematik.de/fhir/erp/ValueSet/GEM_ERP_CS_DocumentType#4 "Approval to prescribe Narcotics"
Loading

0 comments on commit 2700400

Please sign in to comment.