{
  "resourceType": "StructureDefinition",
  "id": "lipidprofile",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">to do</div>"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary",
      "valueMarkdown": "This is a test summary [lipids](observation.html)"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 1
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "oo"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use"
    }
  ],
  "url": "http://hl7.org/fhir/StructureDefinition/lipidprofile",
  "version": "4.0.0",
  "name": "Example Lipid Profile",
  "status": "draft",
  "experimental": true,
  "date": "2012-05-12",
  "publisher": "Grahame Grieve",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "grahame@healthintersections.com.au"
        }
      ]
    }
  ],
  "description": "Lipid Lab Report",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport",
        "path": "DiagnosticReport",
        "short": "Lipid Lab Report",
        "definition": "The findings and interpretation of a general lipid lab profile.",
        "comment": "In this profile, mustSupport means that authoring systems must include the ability to report these elements, and processing systems must cater for them by either displaying them to the user or considering them appropriately in decision support systems.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "short": "LOINC Code for Lipid Panel with LDL",
        "definition": "LOINC Code for Lipid Panel with LDL.",
        "comment": "LOINC code includes \"direct\" LDL - does this mean LDL derived by measuring VLDL by ultracentrifugation? This panel includes both measured and calculated LDL.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "57698-3",
              "display": "Lipid panel with direct LDL - Serum or Plasma"
            }
          ]
        }
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "resolve().code"
            }
          ],
          "ordered": true,
          "rules": "closed"
        },
        "min": 3,
        "max": "4"
      },
      {
        "id": "DiagnosticReport.result:Cholesterol",
        "path": "DiagnosticReport.result",
        "sliceName": "Cholesterol",
        "short": "Cholesterol Result",
        "definition": "Reference to Cholesterol Result.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/cholesterol"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:Triglyceride",
        "path": "DiagnosticReport.result",
        "sliceName": "Triglyceride",
        "short": "Triglyceride Result",
        "definition": "Group of elements for Triglyceride result.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/triglyceride"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:HDLCholesterol",
        "path": "DiagnosticReport.result",
        "sliceName": "HDLCholesterol",
        "short": "HDL Cholesterol Result",
        "definition": "Group of elements for HDL Cholesterol result.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/hdlcholesterol"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result:LDLCholesterol",
        "path": "DiagnosticReport.result",
        "sliceName": "LDLCholesterol",
        "short": "LDL Cholesterol result, if reported",
        "definition": "LDL Cholesterol result, if reported.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ldlcholesterol"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.conclusion",
        "path": "DiagnosticReport.conclusion",
        "short": "Clinical Interpretation of Lipid Panel",
        "definition": "May include diagnosis or suggestions for follow up testing.",
        "comment": "It's not unusual for the lab to make some kind of interpretative comment on the set of results.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.conclusionCode",
        "path": "DiagnosticReport.conclusionCode",
        "short": "No codes for a lipid panel",
        "definition": "No codes for a lipid panel.",
        "comment": "Not used in this context.",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      }
    ]
  }
}