-
Notifications
You must be signed in to change notification settings - Fork 1
add query and operation Examples to rx IG TMD-3332 #164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
f-peverali
wants to merge
32
commits into
develop
Choose a base branch
from
examples
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 9 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
d2cd9a8
update examples for the create operation
Hendrejvr 3a260b2
update the examples for the activate operation
Hendrejvr 2604ee5
add $abort OperationOutcome example
f-peverali 5f61f4a
add accept examples
f-peverali f4a8b49
fix codes
f-peverali 0231c88
add dispense example
f-peverali 2384806
add close examples
f-peverali 31c1e38
add reject example
f-peverali 3e12d57
init query examples
f-peverali 3e98764
fix sushi errors
f-peverali cf8eebb
add json rendering for queries
f-peverali bde6139
rm todo
f-peverali 9901051
rm placeholder examples
f-peverali a041a7f
add json for operation examples
f-peverali 70828a1
fix base64
f-peverali 83a6a3f
fix base64 again
f-peverali 793aacb
add request wt body
f-peverali 596b36a
try fix base64
f-peverali f1cabca
Merge remote-tracking branch 'origin/develop' into examples
f-peverali c4c40f0
fix base64
f-peverali b5eda9c
update for op create request + question on response example
f-peverali 36e9e1c
update diga op activate examples
f-peverali e92f48a
update activate error
f-peverali 5a5ecfe
update op activate example
f-peverali f824b2f
Apply suggestion from @f-peverali
f-peverali fa1315f
updat op examples reject
f-peverali 9fdc8d6
Merge branch 'examples' of https://github.com/gematik/fhir-igs-workfl…
f-peverali bf195fb
update op close example
f-peverali c34df94
update op abort example
f-peverali e4f3c32
fix sushi errors
f-peverali a8dca65
fix sushi error
f-peverali e65e411
add diga op create positive example
f-peverali File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| Instance: ExampleRxCreateOperationOutcomeError | ||
| InstanceOf: OperationOutcome | ||
| Usage: #example | ||
| Title: "Beispiel Operation Outcome für Rx $create Operation" | ||
| Description: "Beispiel für ein OperationOutcome, das vom Fachdienst über die $create-Operation zurückgegeben werden könnte, wenn die Validierung der Eingabeparameter fehlschlägt" | ||
| * id = "ExampleRxCreateOperationOutcomeError" | ||
| * issue[0].severity = #error | ||
| * issue[0].code = #invalid | ||
| * issue[0].details.coding.code = #SVC_VALIDATION_FAILED | ||
| * issue[0].details.coding.system = "https://gematik.de/fhir/ti/CodeSystem/operation-outcome-details-codes" | ||
|
|
||
| Instance: ExampleRxActivateOperationOutcomeError | ||
| InstanceOf: OperationOutcome | ||
| Usage: #example | ||
| Title: "Beispiel Operation Outcome für Rx $activate Operation" | ||
| Description: "Beispiel für ein OperationOutcome, das vom Fachdienst über die $activate-Operation zurückgegeben werden könnte, wenn die Validierung der Eingabeparameter fehlschlägt" | ||
| * id = "ExampleRxActivateOperationOutcomeError" | ||
| * issue[0].severity = #error | ||
| * issue[0].code = #invalid | ||
| * issue[0].details.coding.code = #SVC_VALIDATION_FAILED | ||
| * issue[0].details.coding.system = "https://gematik.de/fhir/ti/CodeSystem/operation-outcome-details-codes" | ||
|
|
||
| Instance: ExampleRxAbortOperationOutcomeError | ||
| InstanceOf: OperationOutcome | ||
| Usage: #example | ||
| Title: "Beispiel Operation Outcome für Rx $abort Operation" | ||
| Description: "Beispiel für ein OperationOutcome, das vom Fachdienst über die $abort-Operation zurückgegeben werden könnte, wenn der aufrufende Nutzer nicht berechtigt ist, die Operation auszuführen" | ||
| * id = "ExampleRxAbortOperationOutcomeError" | ||
| * issue[0].severity = #error | ||
| * issue[0].code = #invalid | ||
| * issue[0].details.coding.code = #TIFLOW_AUTH_ROLE_NOT_ALLOWED | ||
| * issue[0].details.coding.system = "https://gematik.de/fhir/tiflow/core/CodeSystem/tiflow-operation-outcome-details-cs" | ||
| * issue[0].details.coding.display = "Access role not allowed" | ||
| * issue[0].details.text = "Der Nutzer ist nicht berechtigt, die aufgerufene Operation anzufordern" | ||
|
|
||
| Instance: ExampleRxAcceptOperationOutcomeError | ||
| InstanceOf: OperationOutcome | ||
| Usage: #example | ||
| Title: "Beispiel Operation Outcome für Rx $accept Operation" | ||
| Description: "Beispiel für ein OperationOutcome, das vom Fachdienst über die $accept-Operation zurückgegeben werden könnte, wenn der aufrufende Nutzer nicht berechtigt ist, die Operation auszuführen" | ||
| * id = "ExampleRxAcceptOperationOutcomeError" | ||
| * issue[0].severity = #error | ||
| * issue[0].code = #invalid | ||
| * issue[0].details.coding.code = #TIFLOW_AUTH_ROLE_NOT_ALLOWED | ||
| * issue[0].details.coding.system = "https://gematik.de/fhir/tiflow/core/CodeSystem/tiflow-operation-outcome-details-cs" | ||
| * issue[0].details.coding.display = "Access role not allowed" | ||
| * issue[0].details.text = "Der Nutzer ist nicht berechtigt, die aufgerufene Operation anzufordern" | ||
|
|
||
| Instance: ExampleRxDispenseOperationOutcomeError | ||
| InstanceOf: OperationOutcome | ||
| Usage: #example | ||
| Title: "Beispiel Operation Outcome für Rx $dispense Operation" | ||
| Description: "Beispiel für ein OperationOutcome, das vom Fachdienst über die $dispense-Operation zurückgegeben werden könnte, wenn sich der Task nicht im Status in-progress befindet" | ||
| * id = "ExampleRxDispenseOperationOutcomeError" | ||
| * issue[0].severity = #error | ||
| * issue[0].code = #invalid | ||
| * issue[0].details.coding.code = #TIFLOW_TASK_STATUS_MISMATCH | ||
| * issue[0].details.coding.system = "https://gematik.de/fhir/tiflow/core/CodeSystem/tiflow-operation-outcome-details-cs" | ||
| * issue[0].details.coding.display = "Task status mismatch" | ||
| * issue[0].details.text = "Task has invalid status." | ||
|
|
||
| Instance: ExampleRxCloseOperationOutcomeError | ||
| InstanceOf: OperationOutcome | ||
| Usage: #example | ||
| Title: "Beispiel Operation Outcome für Rx $close Operation" | ||
| Description: "Beispiel für ein OperationOutcome, das vom Fachdienst über die $close-Operation zurückgegeben werden könnte, wenn der aufrufende Nutzer nicht berechtigt ist, die Operation auszuführen" | ||
| * id = "ExampleRxCloseOperationOutcomeError" | ||
| * issue[0].severity = #error | ||
| * issue[0].code = #invalid | ||
| * issue[0].details.coding.code = #TIFLOW_AUTH_ROLE_NOT_ALLOWED | ||
| * issue[0].details.coding.system = "https://gematik.de/fhir/tiflow/core/CodeSystem/tiflow-operation-outcome-details-cs" | ||
| * issue[0].details.coding.display = "Access role not allowed" | ||
| * issue[0].details.text = "Der Nutzer ist nicht berechtigt, die aufgerufene Operation anzufordern" | ||
|
|
||
| Instance: ExampleRxRejectOperationOutcomeError | ||
| InstanceOf: OperationOutcome | ||
| Usage: #example | ||
| Title: "Beispiel Operation Outcome für Rx $reject Operation" | ||
| Description: "Beispiel für ein OperationOutcome, das vom Fachdienst über die $reject-Operation zurückgegeben werden könnte, wenn der aufrufende Nutzer nicht berechtigt ist, die Operation auszuführen" | ||
| * id = "ExampleRxRejectOperationOutcomeError" | ||
| * issue[0].severity = #error | ||
| * issue[0].code = #invalid | ||
| * issue[0].details.coding.code = #TIFLOW_AUTH_ROLE_NOT_ALLOWED | ||
| * issue[0].details.coding.system = "https://gematik.de/fhir/tiflow/core/CodeSystem/tiflow-operation-outcome-details-cs" | ||
| * issue[0].details.coding.display = "Access role not allowed" | ||
| * issue[0].details.text = "Der Nutzer ist nicht berechtigt, die aufgerufene Operation anzufordern" | ||
19 changes: 19 additions & 0 deletions
19
igs/rx/input/fsh/examples/parameters_examples/Example_Parameters.fsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| Instance: ExampleRxCreateOperationRequestParameters | ||
| InstanceOf: Parameters | ||
| Usage: #example | ||
| Title: "Example request parameters for Rx $create operation" | ||
| Description: "Beispiel für Eingabeparameter der Create-Operation" | ||
| * id = "ExampleRxCreateOperationRequestParameters" | ||
| * parameter[+].name = "workflowType" | ||
| * parameter[=].valueCoding[+].system = "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_FlowType" | ||
| * parameter[=].valueCoding[=].code = "160" | ||
|
|
||
| Instance: ExampleRxActivateOperationRequestParameters | ||
| InstanceOf: Parameters | ||
| Usage: #example | ||
| Title: "Example request parameters for Rx $activate operation" | ||
| Description: "Beispiel für Eingabeparameter der Activate-Operation" | ||
| * id = "ExampleRxActivateOperationRequestParameters" | ||
| * parameter[+].name = "ePrescription" | ||
| * parameter[=].resource.contentType = "application/pkcs7-mime" | ||
| * parameter[=].resource.data = "MIJTfQYJKoZIhvcNAQcCoIJTbjCCU2oCAQUxDzANBglghkgBZQMEAg..." |
8 changes: 8 additions & 0 deletions
8
igs/rx/input/fsh/examples/parameters_examples/Example_Parameters_Accept.fsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| Instance: ExampleRxAcceptOutputParameters | ||
| InstanceOf: GEM_ERP_PR_PAR_AcceptOperation_Output | ||
| Usage: #example | ||
| Title: "Beispiel Erfolgsantwort der Rx $accept Operation" | ||
| Description: "Beispiel für die erfolgreiche Antwort (HTTP 200) der $accept-Operation: ein Parameters-Resource, dessen return-Parameter das Accept-Bundle (Task in-progress und qualifiziert signiertes E-Rezept) enthält" | ||
| * id = "ExampleRxAcceptOutputParameters" | ||
| * parameter[return].name = "return" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. s.o. wenn im Parameters Profil nur ein parameter mit namen "return" definiert ist, dann wird nur das zurückgegeben was da drin ist. |
||
| * parameter[return].resource = ExampleAcceptResponseBundle | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.