Search code examples
gatling

Gatling ElFileBody and parameter + static test


I want to parameterize just the NIN (05129996961) in this example (I have it in session).

 "subject": {
            "reference": "urn:uuid:c1015cfa-d6b6-4f06-8150-ced7dbea759c",
            "type": "http://xxx/fhir/StructureDefinition/sfm-Patient",
            "display": "Patient 05129996961"
          },

Is there a way to say i.e. "display": "Patient + ${nin}" or something similar in the ElFileBody?


Solution

  • Plain old Gatling EL:

     "subject": {
                "reference": "urn:uuid:c1015cfa-d6b6-4f06-8150-ced7dbea759c",
                "type": "http://xxx/fhir/StructureDefinition/sfm-Patient",
                "display": "Patient #{nin}"
              },