PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.r2.examples@1.0.2
    http://hl7.org/fhir/TestScript/multiserver
{
  "description": "Multiserver Test Script",
  "_filename": "TestScript-multiserver.json",
  "package_name": "hl7.fhir.r2.examples",
  "date": null,
  "publisher": null,
  "name": "Multiserver Test Script",
  "type": null,
  "experimental": null,
  "resourceType": "TestScript",
  "title": null,
  "setup": {
    "action": [ {
      "operation": {
        "type": {
          "code": "create"
        },
        "sourceId": "F1",
        "contentType": "xml",
        "destination": 0
      }
    } ],
    "metadata": {
      "link": [ {
        "url": "http://hl7.org/implement/standards/FHIR-Develop/patient.html",
        "description": "FHIR Patient"
      } ],
      "capability": [ {
        "link": [ "http://hl7.org/implement/standards/FHIR-Develop/http.html#create" ],
        "required": true,
        "conformance": {
          "reference": "Conformance/example"
        },
        "description": "Patient Create Operation"
      } ]
    }
  },
  "package_version": "1.0.2",
  "status": "draft",
  "id": "ba351a3b-4819-48ad-a1ba-d1c5a809dd5b",
  "kind": null,
  "url": "http://hl7.org/fhir/TestScript/multiserver",
  "fixture": [ {
    "id": "F1",
    "resource": {
      "reference": "Patient/example"
    }
  } ],
  "version": null,
  "teardown": {
    "action": [ {
      "operation": {
        "type": {
          "code": "delete"
        },
        "targetId": "F1",
        "destination": 0
      }
    }, {
      "operation": {
        "type": {
          "code": "delete"
        },
        "targetId": "F1",
        "destination": 1
      }
    } ]
  },
  "test": [ {
    "id": "READ01",
    "name": "Read Patient",
    "action": [ {
      "operation": {
        "type": {
          "code": "read"
        },
        "targetId": "F1",
        "responseId": "R1",
        "destination": 0
      }
    }, {
      "assert": {
        "response": "okay"
      }
    }, {
      "assert": {
        "operator": "notEmpty",
        "headerField": "Last-Modified"
      }
    }, {
      "assert": {
        "resource": "Patient"
      }
    }, {
      "assert": {
        "minimumId": "F1"
      }
    } ],
    "metadata": {
      "capability": [ {
        "link": [ "http://hl7.org/implement/standards/FHIR-Develop/http.html#read" ],
        "validated": true,
        "conformance": {
          "reference": "Conformance/example"
        },
        "description": "Patient Read Operation"
      } ]
    },
    "description": "Read the patient from server 0."
  }, {
    "id": "WRITE01",
    "name": "Write Patient",
    "action": [ {
      "operation": {
        "type": {
          "code": "create"
        },
        "sourceId": "R1",
        "destination": 1
      }
    }, {
      "assert": {
        "response": "okay"
      }
    }, {
      "operation": {
        "type": {
          "code": "read"
        },
        "targetId": "R1",
        "responseId": "R2",
        "destination": 1
      }
    }, {
      "assert": {
        "response": "okay"
      }
    }, {
      "assert": {
        "operator": "notEmpty",
        "headerField": "Last-Modified"
      }
    }, {
      "assert": {
        "resource": "Patient"
      }
    }, {
      "assert": {
        "minimumId": "F1"
      }
    }, {
      "assert": {
        "minimumId": "R1"
      }
    } ],
    "metadata": {
      "capability": [ {
        "link": [ "http://hl7.org/implement/standards/FHIR-Develop/http.html#create" ],
        "validated": true,
        "conformance": {
          "reference": "Conformance/example"
        },
        "description": "Patient Create Operation"
      }, {
        "link": [ "http://hl7.org/implement/standards/FHIR-Develop/http.html#read" ],
        "validated": true,
        "conformance": {
          "reference": "Conformance/example"
        },
        "description": "Patient Read Operation"
      } ]
    },
    "description": "Write the patient read from server 0 to server 1."
  }, {
    "id": "UPDATE01",
    "name": "Update Patient",
    "action": [ {
      "operation": {
        "type": {
          "code": "update"
        },
        "sourceId": "R2",
        "targetId": "R1",
        "destination": 0
      }
    }, {
      "assert": {
        "response": "okay"
      }
    }, {
      "operation": {
        "type": {
          "code": "read"
        },
        "targetId": "R1",
        "responseId": "R3",
        "destination": 0
      }
    }, {
      "assert": {
        "response": "okay"
      }
    }, {
      "assert": {
        "operator": "notEmpty",
        "headerField": "Last-Modified"
      }
    }, {
      "assert": {
        "resource": "Patient"
      }
    }, {
      "assert": {
        "minimumId": "F1"
      }
    }, {
      "assert": {
        "minimumId": "R1"
      }
    }, {
      "assert": {
        "minimumId": "R2"
      }
    } ],
    "metadata": {
      "capability": [ {
        "link": [ "http://hl7.org/implement/standards/FHIR-Develop/http.html#update" ],
        "validated": true,
        "conformance": {
          "reference": "Conformance/example"
        },
        "description": "Patient Update Operation"
      } ]
    },
    "description": "Update the patient on server 0 with the one read from server 1."
  } ],
  "multiserver": true
}