{
  "resourceType": "StructureDefinition",
  "url": "http://example.org/fhir/StructureDefinition/DocumentoFHIR",
  "name": "DocumentoFHIR",
  "status": "draft",
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle",
        "path": "Bundle",
        "definition": "Sera un bundle de tipo document para los diagnosticos",
        "mustSupport": true
      },
      {
        "id": "Bundle.identifier",
        "path": "Bundle.identifier",
        "max": "0"
      },
      {
        "id": "Bundle.identifier.use",
        "path": "Bundle.identifier.use",
        "max": "0"
      },
      {
        "id": "Bundle.identifier.system",
        "path": "Bundle.identifier.system",
        "max": "0"
      },
      {
        "id": "Bundle.identifier.value",
        "path": "Bundle.identifier.value",
        "max": "0"
      },
      {
        "id": "Bundle.identifier.period",
        "path": "Bundle.identifier.period",
        "max": "0"
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "definition": "FHIR Document",
        "comment": "Se utliza este bundle para documentos de tipo diagnostico",
        "fixedCode": "document",
        "mustSupport": true
      },
      {
        "id": "Bundle.link",
        "path": "Bundle.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry.link.relation",
        "path": "Bundle.entry.link.relation",
        "min": 0
      },
      {
        "id": "Bundle.entry.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "max": "0"
      },
      {
        "id": "Bundle.entry.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource"
          },
          {
            "code": "Composition",
            "profile": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "code": "Encounter",
            "profile": "http://hl7.org/fhir/StructureDefinition/Encounter"
          },
          {
            "code": "Patient",
            "profile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Organization",
            "profile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Practitioner",
            "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Condition",
            "profile": "http://hl7.org/fhir/StructureDefinition/Condition"
          }
        ]
      },
      {
        "id": "Bundle.entry.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry.response",
        "path": "Bundle.entry.response",
        "max": "0"
      }
    ]
  }
}