{
  "resourceType": "OperationDefinition",
  "id": "ncdhc-document-update",
  "url": "http://hl7.org.au/fhir/ch/v1/OperationDefinition/ncdhc-document-update",
  "version": "v1.0.0",
  "name": "NCDHC OperationDefination $document-update",
  "status": "active",
  "kind": "operation",
  "date": "2019-11-22",
  "publisher": "National Children's Digital Health Collaborative (NCDHC)",
  "purpose": "To allow system to deprecate or reinstate a Document",
  "code": "document-update",
  "comment": "Use this operation to Deprecate/Reinstate an existing document.",
  "resource": [
    "DocumentReference"
  ],
  "system": false,
  "type": false,
  "instance": true,
  "parameter": [
    {
      "name": "subject",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "The Logical Id of the Patient in context",
      "type": "id"
    },
    {
      "name": "action",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "Define the action.  alowed values are Deprecate | Reinstate.",
      "type": "Coding",
      "binding": {
        "strength": "required",
        "valueSetReference": {
          "reference": "http://hl7.org.au/fhir/ch/v1/ValueSet/ncdhc-document-action-type-1"
        }
      }
    },
    {
      "name": "actionReason",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "a description stating why the action has been performed.",
      "type": "string"
    },
    {
      "name": "requestedBy",
      "use": "in",
      "min": 0,
      "max": "*",
      "documentation": "RelatedPerson/Organisation/Practitioner who has requested this action",
      "type": "Any"
    },
    {
      "name": "outcome",
      "use": "out",
      "min": 1,
      "max": "1",
      "documentation": "An OperationOutcome to return back the result information.",
      "type": "OperationOutcome"
    }
  ]
}