{
  "resourceType": "StructureDefinition",
  "id": "el-documentreference",
  "url": "http://fhir.essilorluxottica.com/fhir/StructureDefinition/el-documentreference",
  "version": "1.0.0",
  "name": "ELDocumentReference",
  "title": "EL DocumentReference Profile",
  "status": "draft",
  "description": "The Profile for DocumentReference.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DocumentReference",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DocumentReference",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DocumentReference.meta.extension",
        "path": "DocumentReference.meta.extension",
        "min": 1
      },
      {
        "id": "DocumentReference.meta.extension:organization",
        "path": "DocumentReference.meta.extension",
        "sliceName": "organization",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.essilorluxottica.com/fhir/StructureDefinition/el-meta-organization-extension"
            ]
          }
        ]
      },
      {
        "id": "DocumentReference.meta.tag",
        "path": "DocumentReference.meta.tag",
        "binding": {
          "strength": "required",
          "valueSet": "http://fhir.essilorluxottica.com/fhir/ValueSet/el-metatag-vs"
        }
      },
      {
        "id": "DocumentReference.status",
        "path": "DocumentReference.status",
        "patternCode": "current"
      },
      {
        "id": "DocumentReference.docStatus",
        "path": "DocumentReference.docStatus",
        "min": 1
      },
      {
        "id": "DocumentReference.type",
        "path": "DocumentReference.type",
        "min": 1,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://fhir.essilorluxottica.com/fhir/ValueSet/el-documentreference-documenttype-vs"
        }
      },
      {
        "id": "DocumentReference.category",
        "path": "DocumentReference.category",
        "patternCodeableConcept": {
          "coding": [
            {
              "code": "document",
              "system": "http://fhir.essilorluxottica.com/fhir/CodeSystem/el-documentreference-category-cs"
            }
          ]
        }
      },
      {
        "id": "DocumentReference.subject",
        "path": "DocumentReference.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.essilorluxottica.com/fhir/StructureDefinition/el-patient"
            ]
          }
        ]
      },
      {
        "id": "DocumentReference.date",
        "path": "DocumentReference.date",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.author",
        "path": "DocumentReference.author",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.content",
        "path": "DocumentReference.content",
        "max": "1"
      },
      {
        "id": "DocumentReference.content.attachment.contentType",
        "path": "DocumentReference.content.attachment.contentType",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.content.attachment.url",
        "path": "DocumentReference.content.attachment.url",
        "min": 1
      },
      {
        "id": "DocumentReference.content.attachment.title",
        "path": "DocumentReference.content.attachment.title",
        "min": 1
      },
      {
        "id": "DocumentReference.context.encounter",
        "path": "DocumentReference.context.encounter",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.context.related",
        "path": "DocumentReference.context.related",
        "max": "1",
        "mustSupport": true
      }
    ]
  }
}