{
  "resourceType": "StructureDefinition",
  "id": "ecf489a4-6f30-4f03-b8f0-90766df757ae",
  "meta": {
    "lastUpdated": "2019-02-25T09:58:41.613114+00:00"
  },
  "url": "http://medico-emr.net/stu3/sd/Observation-Base-1",
  "name": "Observation-Base-1",
  "status": "draft",
  "date": "2019-02-25T09:58:41.5396164+00:00",
  "description": "Base profile to be used by other observation-based profiles in medico",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "comment": "Base profile to be used by other observation-based profiles in medico"
      },
      {
        "id": "Observation.id",
        "path": "Observation.id",
        "min": 1
      },
      {
        "id": "Observation.meta",
        "path": "Observation.meta",
        "min": 1
      },
      {
        "id": "Observation.meta.id",
        "path": "Observation.meta.id",
        "max": "0"
      },
      {
        "id": "Observation.meta.versionId",
        "path": "Observation.meta.versionId",
        "max": "0"
      },
      {
        "id": "Observation.meta.profile",
        "path": "Observation.meta.profile",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.meta.security",
        "path": "Observation.meta.security",
        "max": "0"
      },
      {
        "id": "Observation.meta.tag",
        "path": "Observation.meta.tag",
        "max": "0"
      },
      {
        "id": "Observation.implicitRules",
        "path": "Observation.implicitRules",
        "max": "0"
      },
      {
        "id": "Observation.language",
        "path": "Observation.language",
        "max": "0"
      },
      {
        "id": "Observation.text",
        "path": "Observation.text",
        "max": "0"
      },
      {
        "id": "Observation.contained",
        "path": "Observation.contained",
        "max": "0"
      },
      {
        "id": "Observation.identifier",
        "path": "Observation.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type.coding.code"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Observation.identifier:medicoResourceId",
        "path": "Observation.identifier",
        "sliceName": "medicoResourceId",
        "type": [
          {
            "code": "Identifier",
            "profile": "http://medico-emr.net/stu3/sd/Identifier-medicoResourceId-1"
          }
        ]
      },
      {
        "id": "Observation.basedOn",
        "path": "Observation.basedOn",
        "max": "0"
      },
      {
        "id": "Observation.category",
        "path": "Observation.category",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.category.id",
        "path": "Observation.category.id",
        "max": "0"
      },
      {
        "id": "Observation.category.coding",
        "path": "Observation.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.category.coding.id",
        "path": "Observation.category.coding.id",
        "max": "0"
      },
      {
        "id": "Observation.category.coding.system",
        "path": "Observation.category.coding.system",
        "min": 1
      },
      {
        "id": "Observation.category.coding.version",
        "path": "Observation.category.coding.version",
        "max": "0"
      },
      {
        "id": "Observation.category.coding.code",
        "path": "Observation.category.coding.code",
        "min": 1
      },
      {
        "id": "Observation.category.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.category.coding.display",
        "max": "0"
      },
      {
        "id": "Observation.category.coding.userSelected",
        "path": "Observation.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": "http://medico-emr.net/stu3/sd/Reference-SubjectPatient-1",
            "targetProfile": "http://medico-emr.net/stu3/sd/Patient-Patient-1"
          }
        ]
      },
      {
        "id": "Observation.context",
        "path": "Observation.context",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": "http://medico-emr.net/stu3/sd/Reference-ContextEncounter-1",
            "targetProfile": "http://medico-emr.net/stu3/sd/Encounter-Case-1"
          }
        ]
      },
      {
        "id": "Observation.effective[x]:effectiveDateTime",
        "path": "Observation.effectiveDateTime",
        "sliceName": "effectiveDateTime",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Observation.performer",
        "path": "Observation.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://medico-emr.net/stu3/sd/Practitioner-Employee-1"
          }
        ]
      },
      {
        "id": "Observation.dataAbsentReason",
        "path": "Observation.dataAbsentReason",
        "max": "0"
      },
      {
        "id": "Observation.method",
        "path": "Observation.method",
        "max": "0"
      },
      {
        "id": "Observation.specimen",
        "path": "Observation.specimen",
        "max": "0"
      },
      {
        "id": "Observation.device",
        "path": "Observation.device",
        "max": "0"
      },
      {
        "id": "Observation.referenceRange",
        "path": "Observation.referenceRange",
        "max": "1"
      },
      {
        "id": "Observation.related.id",
        "path": "Observation.related.id",
        "max": "0"
      },
      {
        "id": "Observation.related.target",
        "path": "Observation.related.target",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Sequence"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Reference"
          }
        ]
      },
      {
        "id": "Observation.related.target.id",
        "path": "Observation.related.target.id",
        "max": "0"
      },
      {
        "id": "Observation.related.target.reference",
        "path": "Observation.related.target.reference",
        "min": 1
      },
      {
        "id": "Observation.related.target.identifier",
        "path": "Observation.related.target.identifier",
        "max": "0"
      },
      {
        "id": "Observation.related.target.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Observation.related.target.display",
        "max": "0"
      }
    ]
  }
}