{
  "resourceType": "StructureDefinition",
  "id": "biobankcy-sd-sleep",
  "url": "http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-sleep",
  "name": "BIOBANKCYSDSleep",
  "title": "Profile: Sleep (biobank.cy)",
  "status": "draft",
  "date": "2022-05-19",
  "publisher": "biobank.cy",
  "contact": [
    {
      "name": "Molecular Medicine Research Center (MMRC)",
      "telecom": [
        {
          "system": "email",
          "value": "biobank@ucy.ac.cy",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Represents the sleep habits of a donor (research subject) or citizen (patient) of the biobank.cy. The sleep habits can be self-reported by the patient or reporeted by a medical doctor or nurse.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://ig.biobank.cy/fhir/StructureDefinition/biobankcy-sd-socialhistory",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "short": "Sleep pattern finding.",
        "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.\r\n\r\nbiobank.cy: display: \"Sleep pattern finding\"",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "401175000"
            }
          ]
        }
      },
      {
        "id": "Observation.code.coding.code",
        "path": "Observation.code.coding.code",
        "short": "Loinc code of sleep duration"
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "binding": {
          "strength": "required",
          "description": "Sleep pattern finding - snomed (401175000)",
          "valueSet": "http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-findingrelatedtosleep"
        }
      },
      {
        "id": "Observation.value[x].coding.system",
        "path": "Observation.value[x].coding.system",
        "min": 1
      },
      {
        "id": "Observation.value[x].coding.code",
        "path": "Observation.value[x].coding.code",
        "min": 1
      },
      {
        "id": "Observation.value[x].coding.display",
        "path": "Observation.value[x].coding.display",
        "min": 1
      }
    ]
  }
}