{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2017-11-02T08:38:04.591+00:00"
  },
  "url": "http://ehelse.no/fhir/StructureDefinition/NationalDialogue-DocumentReference",
  "name": "NationalDialogue-DocumentReference",
  "status": "draft",
  "date": "2017-10-17T07:49:46.11+00:00",
  "description": "This profile extens the DocumentReference with new elements in the attcahemnt element",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DocumentReference",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DocumentReference",
  "differential": {
    "element": [
      {
        "id": "DocumentReference.masterIdentifier",
        "path": "DocumentReference.masterIdentifier",
        "max": "0"
      },
      {
        "id": "DocumentReference.identifier",
        "path": "DocumentReference.identifier",
        "max": "0"
      },
      {
        "id": "DocumentReference.docStatus",
        "path": "DocumentReference.docStatus",
        "max": "0"
      },
      {
        "id": "DocumentReference.class",
        "path": "DocumentReference.class",
        "max": "0"
      },
      {
        "id": "DocumentReference.subject",
        "path": "DocumentReference.subject",
        "max": "0"
      },
      {
        "id": "DocumentReference.created",
        "path": "DocumentReference.created",
        "max": "0"
      },
      {
        "id": "DocumentReference.author",
        "path": "DocumentReference.author",
        "max": "0"
      },
      {
        "id": "DocumentReference.authenticator",
        "path": "DocumentReference.authenticator",
        "max": "0"
      },
      {
        "id": "DocumentReference.custodian",
        "path": "DocumentReference.custodian",
        "max": "0"
      },
      {
        "id": "DocumentReference.relatesTo",
        "path": "DocumentReference.relatesTo",
        "max": "0"
      },
      {
        "id": "DocumentReference.description",
        "path": "DocumentReference.description",
        "max": "0"
      },
      {
        "id": "DocumentReference.securityLabel",
        "path": "DocumentReference.securityLabel",
        "max": "0"
      },
      {
        "id": "DocumentReference.content.attachment.extension",
        "path": "DocumentReference.content.attachment.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DocumentReference.content.attachment.extension:XSDRetrieveDocumentSet",
        "path": "DocumentReference.content.attachment.extension",
        "sliceName": "XSDRetrieveDocumentSet",
        "type": [
          {
            "code": "Extension",
            "profile": "http://ehelse.no/fhir/StructureDefinition/NationalDialogue-Extension.XDSRetrieveDocumentSet"
          }
        ]
      },
      {
        "id": "DocumentReference.context",
        "path": "DocumentReference.context",
        "max": "0"
      }
    ]
  }
}