PackagesCanonicalsLogsProblems
    Packages
    ihe.iti.dsubm@1.0.0-comment
    https://profiles.ihe.net/ITI/DSUBm/SubscriptionTopic/DSUBm-SubscriptionTopic-Folder-Subscription-MinUpdateOpt
{
  "description": "Profile for the resource SubscriptionTopic. The resource describe the topic of a creation of a Folder type List Resource, the update to insert or remove documents in the Folder and the update of the status. \\r\\nThis topic shall be used in all Folder subscriptions that have a specific patient in the criteria element.\\r\\nNote that:\\r\\n- the trigger for this topic shall be the resourceTrigger (so the eventTrigger shall not be used)\\r\\n- the resourceTrigger.resource element shall be a Folder type List resource\\r\\n- this resource shall be used when the \\\"Folder Subscription for Minimal Update Option\\\" is supported\\r\\n- the events are the creation of a Folder type List Resource, the update to insert or remove documents in the Folder and the update of the status\\r\\n",
  "_filename": "SubscriptionTopic-DSUBm-SubscriptionTopic-Folder-Subscription-MinUpdateOpt.json",
  "package_name": "ihe.iti.dsubm",
  "date": "2023-11-17T09:35:47-06:00",
  "meta": {
    "versionId": "1"
  },
  "publisher": "IHE IT Infrastructure Technical Committee",
  "canFilterBy": [ {
    "resource": "List",
    "description": "Filter based on the code of a Folder List Resource. (Fixed Value: folder)",
    "filterParameter": "code"
  }, {
    "resource": "List",
    "description": "Filter based on the patient of a Folder List Resource. (Folder.patientId)",
    "filterParameter": "patient"
  }, {
    "resource": "List",
    "description": "Filter based on the patient of a Folder List Resource. (Folder.patientId)",
    "filterParameter": "patient.identifier"
  }, {
    "resource": "List",
    "description": "Filter based on the identifier of a Folder List Resource. (Folder.entryUUID and Folder.uniqueId)",
    "filterParameter": "identifier"
  }, {
    "resource": "List",
    "description": "Filter based on the designationType of a Folder List Resource. (Folder.codeList)",
    "filterParameter": "designationType"
  }, {
    "resource": "List",
    "description": "Filter based on the status of a Folder List Resource. (Folder.availabilityStatus)",
    "filterParameter": "status"
  } ],
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm"
    } ]
  } ],
  "name": null,
  "type": null,
  "experimental": null,
  "resourceType": "SubscriptionTopic",
  "title": "SubscriptionTopic for Folder Subscription for Minimal Update Option",
  "package_version": "1.0.0-comment",
  "status": "active",
  "id": "1153bc8c-66c0-462e-b713-b9d37e7003fe",
  "kind": null,
  "url": "https://profiles.ihe.net/ITI/DSUBm/SubscriptionTopic/DSUBm-SubscriptionTopic-Folder-Subscription-MinUpdateOpt",
  "notificationShape": [ {
    "resource": "List"
  } ],
  "version": "1.0.0-comment",
  "contact": [ {
    "telecom": [ {
      "value": "https://www.ihe.net/ihe_domains/it_infrastructure/",
      "system": "url"
    } ]
  }, {
    "telecom": [ {
      "value": "iti@ihe.net",
      "system": "email"
    } ]
  }, {
    "name": "IHE IT Infrastructure Technical Committee",
    "telecom": [ {
      "value": "iti@ihe.net",
      "system": "email"
    } ]
  } ],
  "resourceTrigger": [ {
    "resource": "http://hl7.org/fhir/StructureDefinition/List",
    "description": "A Folder type List resource is created.",
    "fhirPathCriteria": "((%current.code.coding.where(system='https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes').code='folder' or %current.code.coding.where(system='https://profiles.ihe.net/ITI/DSUBm/CodeSystem/DSUBmlistTypes').code='folder'))",
    "supportedInteraction": [ "create" ]
  }, {
    "resource": "http://hl7.org/fhir/StructureDefinition/List",
    "description": "A Folder type List resource is updated to insert new documents in the Folder, to remove documents from the Folder or to update the status.",
    "fhirPathCriteria": "((%current.code.coding.where(system='https://profiles.ihe.net/ITI/MHD/CodeSystem/MHDlistTypes').code='folder' or %current.code.coding.where(system='https://profiles.ihe.net/ITI/DSUBm/CodeSystem/DSUBmlistTypes').code='folder')) and ( ((%previous.entry.item).count() < (%current.entry.item).count()) or (((%previous.entry.item).count() > (%current.entry.item).count())) or ((%previous.status != %current.status)) )",
    "supportedInteraction": [ "update" ]
  } ]
}