{
  "resourceType": "StructureDefinition",
  "id": "POWER2DM-actionCategory",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2017-03-14T11:39:23.932+00:00"
  },
  "url": "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM-actionCategory",
  "name": "POWER2DM-actionCategory",
  "status": "draft",
  "description": "Extension to define the category of an planned action",
  "kind": "datatype",
  "constrainedType": "Extension",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "ProcedureRequest"
  ],
  "base": "http://hl7.org/fhir/StructureDefinition/Extension",
  "snapshot": {
    "element": [
      {
        "path": "Extension",
        "short": "Base for all elements",
        "definition": "Optional Extensions Element - found in all resources.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Element"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "*"
              }
            ],
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "xpath": "@value|f:*|h:div"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Extension.id",
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "comments": "RFC 4122",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "*"
              }
            ],
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "xpath": "@value|f:*|h:div"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Extension.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "*"
              }
            ],
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "xpath": "@value|f:*|h:div"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Extension.url",
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comments": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition should be version specific.  This will ideally be the URI for the Resource Profile defining the extension, with the code for the extension after a #.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.url",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM-actionCategory",
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "*"
              }
            ],
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "xpath": "@value|f:*|h:div"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Extension.valueCode",
        "short": "Value of extension",
        "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-expression",
                "valueString": "*"
              }
            ],
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "xpath": "@value|f:*|h:div"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "Categories of planned actions in POWER2DM",
          "valueSetReference": {
            "reference": "http://power2dm.eu/pds/ValueSet/pdm-action-categories"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "path": "Extension"
      },
      {
        "path": "Extension.url",
        "representation": [
          "xmlAttr"
        ],
        "fixedUri": "http://www.power2dm.eu/pds/StructureDefinition/POWER2DM-actionCategory"
      },
      {
        "path": "Extension.valueCode",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "Categories of planned actions in POWER2DM",
          "valueSetReference": {
            "reference": "http://power2dm.eu/pds/ValueSet/pdm-action-categories"
          }
        }
      }
    ]
  }
}