Tiger FHIR validation evidences

☰ Scenario Create a MedicationAdministration resource via POST

Given TGR set default header "Content-Type" to "application/fhir+json"
When TGR send POST request to "http://fhirserver/MedicationAdministration" with body "!{file('src/test/resources/features/Stufe5/Medikation/fixtures/MedicationAdministration-Create-Fixture.json')}"
And TGR find the last request
Then TGR current response with attribute "$.responseCode" matches "20\d"
And FHIR current response body evaluates the FHIRPath '($this is MedicationAdministration) or ($this is Parameters)' with error message 'The response contains neither a MedicationAdministration nor a Parameters resource'
INFO
($this is MedicationAdministration) or ($this is Parameters)
 
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath '($this is MedicationAdministration) implies id.exists()' with error message 'No ID was assigned to the MedicationAdministration'
INFO
($this is MedicationAdministration) implies id.exists()
 
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "($this is MedicationAdministration) implies status.toString().matches('^completed')" with error message 'MedicationAdministration status does not have the value "completed"'
INFO
($this is MedicationAdministration) implies status.toString().matches('^completed')
 
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "($this is Parameters) implies parameter.where(name = 'return' and resource is MedicationAdministration).resource.id.exists()" with error message 'No ID was assigned to the MedicationAdministration'
INFO
($this is Parameters) implies parameter.where(name = 'return' and resource is MedicationAdministration).resource.id.exists()
 
["BooleanType[true]"]
And FHIR current response body evaluates the FHIRPath "($this is Parameters) implies parameter.where(name = 'return' and resource is MedicationAdministration).resource.status.toString().matches('^completed')" with error message 'MedicationAdministration status does not have the value "completed"'
INFO
($this is Parameters) implies parameter.where(name = 'return' and resource is MedicationAdministration).resource.status.toString().matches('^completed')
 
["BooleanType[true]"]