### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/ExampleScenario.json
### ----------------------------------------------------
### -- Chunk 13 of 13
 "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this example scenario outside of FHIR, where it is not possible to use the logical URI.",
      "requirements" : "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "Identifier"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.identifier"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.identifier"
      },
      {
        "identity" : "objimpl",
        "map" : "no-gen-base"
      }]
    },
    {
      "id" : "ExampleScenario.version",
      "path" : "ExampleScenario.version",
      "short" : "Business version of the example scenario",
      "definition" : "The identifier that is used to identify this version of the example scenario when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the example scenario author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.",
      "comment" : "There may be different example scenario instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the example scenario with the format [url]|[version].",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.version"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.version"
      }]
    },
    {
      "id" : "ExampleScenario.name",
      "path" : "ExampleScenario.name",
      "short" : "Name for this example scenario (computer friendly)",
      "definition" : "A natural language name identifying the example scenario. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
      "comment" : "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
      "requirements" : "Support human navigation and code generation.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "condition" : ["inv-0"],
      "isSummary" : true
    },
    {
      "id" : "ExampleScenario.status",
      "path" : "ExampleScenario.status",
      "short" : "draft | active | retired | unknown",
      "definition" : "The status of this example scenario. Enables tracking the life-cycle of the content.",
      "comment" : "Allows filtering of example scenarios that are appropriate for use versus not.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isModifier" : true,
      "isModifierReason" : "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "PublicationStatus"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean" : true
        }],
        "strength" : "required",
        "description" : "The lifecycle status of an artifact.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/publication-status|4.0.0"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.status"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.status"
      }]
    },
    {
      "id" : "ExampleScenario.experimental",
      "path" : "ExampleScenario.experimental",
      "short" : "For testing purposes, not real usage",
      "definition" : "A Boolean value to indicate that this example scenario is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",
      "comment" : "Allows filtering of example scenarios that are appropriate for use versus not.",
      "requirements" : "Enables experimental content to be developed following the same lifecycle that would be used for a production-level example scenario.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "boolean"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.experimental"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.class"
      }]
    },
    {
      "id" : "ExampleScenario.date",
      "path" : "ExampleScenario.date",
      "short" : "Date last changed",
      "definition" : "The date  (and optionally time) when the example scenario was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the example scenario changes. (e.g. the 'content logical definition').",
      "comment" : "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the example scenario. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
      "alias" : ["Revision Date"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "dateTime"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.date"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.recorded"
      }]
    },
    {
      "id" : "ExampleScenario.publisher",
      "path" : "ExampleScenario.publisher",
      "short" : "Name of the publisher (organization or individual)",
      "definition" : "The name of the organization or individual that published the example scenario.",
      "comment" : "Usually an organization but may be an individual. The publisher (or steward) of the example scenario is the organization or individual primarily responsible for the maintenance and upkeep of the example scenario. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the example scenario. This item SHOULD be populated unless the information is available from context.",
      "requirements" : "Helps establish the \"authority/credibility\" of the example scenario.  May also allow for contact.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.publisher"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.witness"
      }]
    },
    {
      "id" : "ExampleScenario.contact",
      "path" : "ExampleScenario.contact",
      "short" : "Contact details for the publisher",
      "definition" : "Contact details to assist a user in finding and communicating with the publisher.",
      "comment" : "May be a web site, an email address, a telephone number, etc.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "ContactDetail"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.contact"
      }]
    },
    {
      "id" : "ExampleScenario.useContext",
      "path" : "ExampleScenario.useContext",
      "short" : "The context that the content is intended to support",
      "definition" : "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate example scenario instances.",
      "comment" : "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
      "requirements" : "Assist in searching for appropriate content.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "UsageContext"
      }],
      "isSummary" : true,
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.useContext"
      }]
    },
    {
      "id" : "ExampleScenario.jurisdiction",
      "path" : "ExampleScenario.jurisdiction",
      "short" : "Intended jurisdiction for example scenario (if applicable)",
      "definition" : "A legal or geographic region in which the example scenario is intended to be used.",
      "comment" : "It may be possible for the example scenario to be used in jurisdictions other than those for which it was originally designed or intended.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "CodeableConcept"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "Jurisdiction"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean" : true
        }],
        "strength" : "extensible",
        "description" : "Countries and regions within which this artifact is targeted for use.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/jurisdiction"
      },
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.jurisdiction"
      }]
    },
    {
      "id" : "ExampleScenario.copyright",
      "path" : "ExampleScenario.copyright",
      "short" : "Use and/or publishing restrictions",
      "definition" : "A copyright statement relating to the example scenario and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the example scenario.",
      "comment" : "nullFrequently, the copyright differs between the value set and the codes that are included. The copyright statement should clearly differentiate between these when required.",
      "requirements" : "Consumers must be able to determine any legal restrictions on the use of the example scenario and/or its content.",
      "alias" : ["License",
      "Restrictions"],
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "markdown"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.copyright"
      },
      {
        "identity" : "objimpl",
        "map" : "no-gen-base"
      }]
    },
    {
      "id" : "ExampleScenario.purpose",
      "path" : "ExampleScenario.purpose",
      "short" : "The purpose of the example, e.g. to illustrate a scenario",
      "definition" : "What the example scenario resource is created for. This should not be used to show the business purpose of the scenario itself, but the purpose of documenting a scenario.",
      "comment" : "This element does not describe the usage of the example scenario. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this example scenario.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "markdown"
      }],
      "mapping" : [{
        "identity" : "workflow",
        "map" : "Definition.purpose"
      },
      {
        "identity" : "w5",
        "map" : "FiveWs.why[x]"
      },
      {
        "identity" : "objimpl",
        "map" : "no-gen-base"
      }]
    },
    {
      "id" : "ExampleScenario.actor",
      "path" : "ExampleScenario.actor",
      "short" : "Actor participating in the resource",
      "definition" : "Actor participating in the resource.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "ExampleScenario.actor.actorId",
      "path" : "ExampleScenario.actor.actorId",
      "short" : "ID or acronym of the actor",
      "definition" : "ID or acronym of actor.",
      "comment" : "should this be called ID or acronym?",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "ExampleScenario.actor.type",
      "path" : "ExampleScenario.actor.type",
      "short" : "person | entity",
      "definition" : "The type of actor - person or system.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "ExampleScenarioActorType"
        }],
        "strength" : "required",
        "description" : "The type of actor - system or human.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/examplescenario-actor-type|4.0.0"
      }
    },
    {
      "id" : "ExampleScenario.actor.name",
      "path" : "ExampleScenario.actor.name",
      "short" : "The name of the actor as shown in the page",
      "definition" : "The name of the actor as shown in the page.",
      "comment" : "Cardinality: is name and description 1..1?",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "ExampleScenario.actor.description",
      "path" : "ExampleScenario.actor.description",
      "short" : "The description of the actor",
      "definition" : "The description of the actor.",
      "comment" : "Cardinality: is name and description 1..1?",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "markdown"
      }]
    },
    {
      "id" : "ExampleScenario.instance",
      "path" : "ExampleScenario.instance",
      "short" : "Each resource and each version that is present in the workflow",
      "definition" : "Each resource and each version that is present in the workflow.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "ExampleScenario.instance.resourceId",
      "path" : "ExampleScenario.instance.resourceId",
      "short" : "The id of the resource for referencing",
      "definition" : "The id of the resource for referencing.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "ExampleScenario.instance.resourceType",
      "path" : "ExampleScenario.instance.resourceType",
      "short" : "The type of the resource",
      "definition" : "The type of the resource.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "FHIRResourceType"
        }],
        "strength" : "required",
        "description" : "The type of resource.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/resource-types|4.0.0"
      }
    },
    {
      "id" : "ExampleScenario.instance.name",
      "path" : "ExampleScenario.instance.name",
      "short" : "A short name for the resource instance",
      "definition" : "A short name for the resource instance.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "ExampleScenario.instance.description",
      "path" : "ExampleScenario.instance.description",
      "short" : "Human-friendly description of the resource instance",
      "definition" : "Human-friendly description of the resource instance.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "markdown"
      }]
    },
    {
      "id" : "ExampleScenario.instance.version",
      "path" : "ExampleScenario.instance.version",
      "short" : "A specific version of the resource",
      "definition" : "A specific version of the resource.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "ExampleScenario.instance.version.versionId",
      "path" : "ExampleScenario.instance.version.versionId",
      "short" : "The identifier of a specific version of a resource",
      "definition" : "The identifier of a specific version of a resource.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "ExampleScenario.instance.version.description",
      "path" : "ExampleScenario.instance.version.description",
      "short" : "The description of the resource version",
      "definition" : "The description of the resource version.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "markdown"
      }]
    },
    {
      "id" : "ExampleScenario.instance.containedInstance",
      "path" : "ExampleScenario.instance.containedInstance",
      "short" : "Resources contained in the instance",
      "definition" : "Resources contained in the instance (e.g. the observations contained in a bundle).",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "ExampleScenario.instance.containedInstance.resourceId",
      "path" : "ExampleScenario.instance.containedInstance.resourceId",
      "short" : "Each resource contained in the instance",
      "definition" : "Each resource contained in the instance.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "ExampleScenario.instance.containedInstance.versionId",
      "path" : "ExampleScenario.instance.containedInstance.versionId",
      "short" : "A specific version of a resource contained in the instance",
      "definition" : "A specific version of a resource contained in the instance.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "ExampleScenario.process",
      "path" : "ExampleScenario.process",
      "short" : "Each major process - a group of operations",
      "definition" : "Each major process - a group of operations.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "ExampleScenario.process.title",
      "path" : "ExampleScenario.process.title",
      "short" : "The diagram title of the group of operations",
      "definition" : "The diagram title of the group of operations.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }],
      "isSummary" : true
    },
    {
      "id" : "ExampleScenario.process.description",
      "path" : "ExampleScenario.process.description",
      "short" : "A longer description of the group of operations",
      "definition" : "A longer description of the group of operations.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "markdown"
      }]
    },
    {
      "id" : "ExampleScenario.process.preConditions",
      "path" : "ExampleScenario.process.preConditions",
      "short" : "Description of initial status before the process starts",
      "definition" : "Description of initial status before the process starts.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "markdown"
      }]
    },
    {
      "id" : "ExampleScenario.process.postConditions",
      "path" : "ExampleScenario.process.postConditions",
      "short" : "Description of final status after the process ends",
      "definition" : "Description of final status after the process ends.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "markdown"
      }]
    },
    {
      "id" : "ExampleScenario.process.step",
      "path" : "ExampleScenario.process.step",
      "short" : "Each step of the process",
      "definition" : "Each step of the process.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "ExampleScenario.process.step.process",
      "path" : "ExampleScenario.process.step.process",
      "short" : "Nested process",
      "definition" : "Nested process.",
      "min" : 0,
      "max" : "*",
      "contentReference" : "#ExampleScenario.process"
    },
    {
      "id" : "ExampleScenario.process.step.pause",
      "path" : "ExampleScenario.process.step.pause",
      "short" : "If there is a pause in the flow",
      "definition" : "If there is a pause in the flow.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "boolean"
      }]
    },
    {
      "id" : "ExampleScenario.process.step.operation",
      "path" : "ExampleScenario.process.step.operation",
      "short" : "Each interaction or action",
      "definition" : "Each interaction or action.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "ExampleScenario.process.step.operation.number",
      "path" : "ExampleScenario.process.step.operation.number",
      "short" : "The sequential number of the interaction",
      "definition" : "The sequential number of the interaction, e.g. 1.2.5.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "ExampleScenario.process.step.operation.type",
      "path" : "ExampleScenario.process.step.operation.type",
      "short" : "The type of operation - CRUD",
      "definition" : "The type of operation - CRUD.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "ExampleScenario.process.step.operation.name",
      "path" : "ExampleScenario.process.step.operation.name",
      "short" : "The human-friendly name of the interaction",
      "definition" : "The human-friendly name of the interaction.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "ExampleScenario.process.step.operation.initiator",
      "path" : "ExampleScenario.process.step.operation.initiator",
      "short" : "Who starts the transaction",
      "definition" : "Who starts the transaction.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "ExampleScenario.process.step.operation.receiver",
      "path" : "ExampleScenario.process.step.operation.receiver",
      "short" : "Who receives the transaction",
      "definition" : "Who receives the transaction.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "ExampleScenario.process.step.operation.description",
      "path" : "ExampleScenario.process.step.operation.description",
      "short" : "A comment to be inserted in the diagram",
      "definition" : "A comment to be inserted in the diagram.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "markdown"
      }]
    },
    {
      "id" : "ExampleScenario.process.step.operation.initiatorActive",
      "path" : "ExampleScenario.process.step.operation.initiatorActive",
      "short" : "Whether the initiator is deactivated right after the transaction",
      "definition" : "Whether the initiator is deactivated right after the transaction.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "boolean"
      }]
    },
    {
      "id" : "ExampleScenario.process.step.operation.receiverActive",
      "path" : "ExampleScenario.process.step.operation.receiverActive",
      "short" : "Whether the receiver is deactivated right after the transaction",
      "definition" : "Whether the receiver is deactivated right after the transaction.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "boolean"
      }]
    },
    {
      "id" : "ExampleScenario.process.step.operation.request",
      "path" : "ExampleScenario.process.step.operation.request",
      "short" : "Each resource instance used by the initiator",
      "definition" : "Each resource instance used by the initiator.",
      "min" : 0,
      "max" : "1",
      "contentReference" : "#ExampleScenario.instance.containedInstance"
    },
    {
      "id" : "ExampleScenario.process.step.operation.response",
      "path" : "ExampleScenario.process.step.operation.response",
      "short" : "Each resource instance used by the responder",
      "definition" : "Each resource instance used by the responder.",
      "min" : 0,
      "max" : "1",
      "contentReference" : "#ExampleScenario.instance.containedInstance"
    },
    {
      "id" : "ExampleScenario.process.step.alternative",
      "path" : "ExampleScenario.process.step.alternative",
      "short" : "Alternate non-typical step action",
      "definition" : "Indicates an alternative step that can be taken instead of the operations on the base step in exceptional/atypical circumstances.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "BackboneElement"
      }]
    },
    {
      "id" : "ExampleScenario.process.step.alternative.title",
      "path" : "ExampleScenario.process.step.alternative.title",
      "short" : "Label for alternative",
      "definition" : "The label to display for the alternative that gives a sense of the circumstance in which the alternative should be invoked.",
      "min" : 1,
      "max" : "1",
      "type" : [{
        "code" : "string"
      }]
    },
    {
      "id" : "ExampleScenario.process.step.alternative.description",
      "path" : "ExampleScenario.process.step.alternative.description",
      "short" : "A human-readable description of each option",
      "definition" : "A human-readable description of the alternative explaining when the alternative should occur rather than the base step.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "markdown"
      }]
    },
    {
      "id" : "ExampleScenario.process.step.alternative.step",
      "path" : "ExampleScenario.process.step.alternative.step",
      "short" : "What happens in each alternative option",
      "definition" : "What happens in each alternative option.",
      "min" : 0,
      "max" : "*",
      "contentReference" : "#ExampleScenario.process.step"
    },
    {
      "id" : "ExampleScenario.workflow",
      "path" : "ExampleScenario.workflow",
      "short" : "Another nested workflow",
      "definition" : "Another nested workflow.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "canonical",
        "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ExampleScenario"]
      }]
    }]
  }
}


