{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2019-01-08T14:09:14.11+00:00"
  },
  "url": "http://healthyme.philips.com/fhir/StructureDefinition/ConsentPolicy",
  "version": "1",
  "name": "ConsentPolicy",
  "title": "Consent Policy",
  "status": "draft",
  "date": "2019-01-08",
  "publisher": "Philips",
  "description": "A special case of a RelatedArtifact, which specifies the consent that is needed from the patient to enrol in a care plan. The consent policy will typically be about sharing the patient’s data with healthcare professionals, but it could also express the participation in a clinical trial.",
  "fhirVersion": "3.0.1",
  "kind": "complex-type",
  "abstract": false,
  "type": "RelatedArtifact",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/RelatedArtifact",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "RelatedArtifact",
        "path": "RelatedArtifact",
        "short": "Specification of the consent that is needed from the patient to enrol in a care plan",
        "definition": "A special case of a RelatedArtifact, which specifies the consent that is needed from the patient to enrol in a care plan. The consent policy will typically be about sharing the patient’s data with healthcare professionals, but it could also express the participation in a clinical trial.",
        "comment": "Each related artifact is either an attachment, or a reference to another knowledge resource, but not both.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element",
          "min": 0,
          "max": "*"
        },
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() | (children().count() > id.count())",
            "xpath": "@value|f:*|h:div"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "RelatedArtifact.type",
        "path": "RelatedArtifact.type",
        "fixedCode": "depends-on"
      },
      {
        "id": "RelatedArtifact.display",
        "path": "RelatedArtifact.display",
        "short": "Brief description of the consent policy",
        "definition": "A brief description of the consent policy, which can be presented as a title",
        "min": 1
      },
      {
        "id": "RelatedArtifact.url",
        "path": "RelatedArtifact.url",
        "short": "Unique identifier for the consent policy",
        "definition": "This identifies the consent policy uniquely in the system, in the sense that if two ConsentPolicy elements have the same url, their document fields must also be identical. The url may or may not point to a location on the web, but if it does, it should result in the same document."
      },
      {
        "id": "RelatedArtifact.document",
        "path": "RelatedArtifact.document",
        "short": "Detailed description of the consent policy",
        "definition": "A plain or HTML text describing the consent policy in detail, which can be presented to the patient to ask for consent.",
        "min": 1
      }
    ]
  }
}