{
  "resourceType": "StructureDefinition",
  "id": "StructureDefinition-map-intended-workflow",
  "url": "http://objects.directtrust.org/standards/artifacts/StructureDefinition/StructureDefinition-map-intended-workflow",
  "version": "1.0.2",
  "name": "MaPIntendedWorkflow",
  "title": "MaP Intended Workflow",
  "status": "active",
  "date": "2026-10-12",
  "publisher": "DirectTrust",
  "description": "Declares a supported intended workflow and an optional advertised initial Workflow Status Update Endpoint. This discovery declaration may be used to select an initial reporting destination; it does not replace or override the endpoints carried in the originating Workflow Activity Task.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "context": [
    {
      "type": "element",
      "expression": "CapabilityStatement"
    }
  ],
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "definition": "Declares a supported intended workflow and an optional advertised initial Workflow Status Update Endpoint. This discovery declaration may be used to select an initial reporting destination; it does not replace or override the endpoints carried in the originating Workflow Activity Task."
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "min": 1,
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Extension.extension:workflow",
        "path": "Extension.extension",
        "sliceName": "workflow",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:workflow.url",
        "path": "Extension.extension.url",
        "fixedUri": "workflow"
      },
      {
        "id": "Extension.extension:workflow.value[x]",
        "path": "Extension.extension.value[x]",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://objects.directtrust.org/standards/terminology/ValueSet/ServDescVS"
        }
      },
      {
        "id": "Extension.extension:statusEndpoint",
        "path": "Extension.extension",
        "sliceName": "statusEndpoint",
        "min": 0,
        "max": "1",
        "definition": "An optional advertised initial Workflow Status Update Endpoint for discovery or configuration. Once selected, the endpoint is carried in the originating Workflow Activity Task. Subsequent actors preserve the carried endpoint set, and TX8 uses that set rather than reconstructing or overriding it from this declaration."
      },
      {
        "id": "Extension.extension:statusEndpoint.url",
        "path": "Extension.extension.url",
        "fixedUri": "statusEndpoint"
      },
      {
        "id": "Extension.extension:statusEndpoint.value[x]",
        "path": "Extension.extension.value[x]",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "url"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://objects.directtrust.org/standards/artifacts/StructureDefinition/StructureDefinition-map-intended-workflow"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0"
      }
    ]
  }
}
