Skip to content

Instantly share code, notes, and snippets.

@brianraila
Created June 29, 2023 09:34
Show Gist options
  • Select an option

  • Save brianraila/6023406c53fbcc2ee682752aa9a5ec18 to your computer and use it in GitHub Desktop.

Select an option

Save brianraila/6023406c53fbcc2ee682752aa9a5ec18 to your computer and use it in GitHub Desktop.

Revisions

  1. brianraila created this gist Jun 29, 2023.
    21 changes: 21 additions & 0 deletions CardiacConditionsCodeSystem.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    {
    "resourceType": "CodeSystem",
    "url": "http://example.com/CodeSystem/CardiacConditions",
    "version": "1.0.0",
    "name": "CardiacConditions",
    "status": "active",
    "concept": [
    {
    "code": "myocardial-infarction",
    "display": "Myocardial Infarction"
    },
    {
    "code": "heart-failure",
    "display": "Heart Failure"
    },
    {
    "code": "arrhythmia",
    "display": "Arrhythmia"
    }
    ]
    }
    14 changes: 14 additions & 0 deletions CardiacConditionsValueSet.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    {
    "resourceType": "ValueSet",
    "url": "http://example.com/ValueSet/CardiacConditions",
    "version": "1.0.0",
    "name": "CardiacConditions",
    "status": "active",
    "compose": {
    "include": [
    {
    "system": "http://example.com/CodeSystem/CardiacConditions"
    }
    ]
    }
    }
    37 changes: 37 additions & 0 deletions CardiologyPatientStructureDefinition.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    {
    "resourceType": "StructureDefinition",
    "id": "CardiologyPatientProfile",
    "url": "http://example.com/StructureDefinition/CardiologyPatientProfile",
    "version": "1.0.0",
    "name": "CardiologyPatientProfile",
    "status": "active",
    "publisher": "Cardiology Organization",
    "description": "A profile for cardiology patients",
    "fhirVersion": "4.0.1",
    "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
    "snapshot": {
    "element": [
    {
    "id": "Patient.extension",
    "path": "Patient.extension",
    "min": 0,
    "max": "*"
    },
    {
    "id": "Patient.extension:cardiac-condition",
    "path": "Patient.extension",
    "min": 0,
    "max": "1",
    "type": [
    {
    "code": "Extension"
    }
    ],
    "binding": {
    "strength": "required",
    "valueSet": "http://example.com/ValueSet/CardiacConditions"
    }
    }
    ]
    }
    }