from acute import models

list_columns = [
    models.Demographics,
    models.Location,
    models.PastMedicalHistory,
    models.Diagnosis,
    models.Plan,
    models.Rescuscitation
]

list_columns_take = [
    models.Demographics,
    models.Location,
    models.Clerking,
    models.PastMedicalHistory,
    models.Diagnosis,
    models.Plan,
    models.Rescuscitation
]

list_columns_specialist_teams = [
    models.Demographics,
    models.Location,
    models.PastMedicalHistory,
    models.Diagnosis,
    models.Plan,
    models.Treatment,
    models.Investigation,
    models.DischargeDue,
]

list_schemas = {
    'default': list_columns,
    'take': {
        'default': list_columns_take
    },
    'cardiology': {
        'default': list_columns_specialist_teams
    },
    'respiratory': list_columns_specialist_teams
}

detail_columns = list_columns

from acute import models

list_columns = [
    models.Demographics,
    models.Location,
    models.Diagnosis,
    models.PastMedicalHistory,
    models.Plan,
    models.Rescuscitation
]

list_columns_take = [
    models.Demographics,
    models.Location,
    models.Clerking,
    models.Diagnosis,
    models.PastMedicalHistory,
    models.Plan,
    models.Rescuscitation
]

list_columns_specialist_teams = [
    models.Demographics,
    models.Location,
    models.Diagnosis,
    models.PastMedicalHistory,
    models.Plan,
    models.Treatment,
    models.Investigation,
    models.DischargeDue,
]

list_schemas = {
    'default': list_columns,
    'take': {
        'default': list_columns_take
    },
    'cardiology': {
        'default': list_columns_specialist_teams
    },
    'respiratory': list_columns_specialist_teams
}

detail_columns = list_columns

Make Diagnosis come before PMH
Make Diagnosis come before PMH

closes #5

  from acute import models
  
  list_columns = [
      models.Demographics,
      models.Location,
+     models.Diagnosis,
      models.PastMedicalHistory,
-     models.Diagnosis,
      models.Plan,
      models.Rescuscitation
  ]
  
  list_columns_take = [
      models.Demographics,
      models.Location,
      models.Clerking,
+     models.Diagnosis,
      models.PastMedicalHistory,
-     models.Diagnosis,
      models.Plan,
      models.Rescuscitation
  ]
  
  list_columns_specialist_teams = [
      models.Demographics,
      models.Location,
+     models.Diagnosis,
      models.PastMedicalHistory,
-     models.Diagnosis,
      models.Plan,
      models.Treatment,
      models.Investigation,
      models.DischargeDue,
  ]
  
  list_schemas = {
      'default': list_columns,
      'take': {
          'default': list_columns_take
      },
      'cardiology': {
          'default': list_columns_specialist_teams
      },
      'respiratory': list_columns_specialist_teams
  }
  
  detail_columns = list_columns
  
Make Diagnosis come before PMH
## Code Before:
from acute import models

list_columns = [
    models.Demographics,
    models.Location,
    models.PastMedicalHistory,
    models.Diagnosis,
    models.Plan,
    models.Rescuscitation
]

list_columns_take = [
    models.Demographics,
    models.Location,
    models.Clerking,
    models.PastMedicalHistory,
    models.Diagnosis,
    models.Plan,
    models.Rescuscitation
]

list_columns_specialist_teams = [
    models.Demographics,
    models.Location,
    models.PastMedicalHistory,
    models.Diagnosis,
    models.Plan,
    models.Treatment,
    models.Investigation,
    models.DischargeDue,
]

list_schemas = {
    'default': list_columns,
    'take': {
        'default': list_columns_take
    },
    'cardiology': {
        'default': list_columns_specialist_teams
    },
    'respiratory': list_columns_specialist_teams
}

detail_columns = list_columns

## Instruction:
Make Diagnosis come before PMH
## Code After:
from acute import models

list_columns = [
    models.Demographics,
    models.Location,
    models.Diagnosis,
    models.PastMedicalHistory,
    models.Plan,
    models.Rescuscitation
]

list_columns_take = [
    models.Demographics,
    models.Location,
    models.Clerking,
    models.Diagnosis,
    models.PastMedicalHistory,
    models.Plan,
    models.Rescuscitation
]

list_columns_specialist_teams = [
    models.Demographics,
    models.Location,
    models.Diagnosis,
    models.PastMedicalHistory,
    models.Plan,
    models.Treatment,
    models.Investigation,
    models.DischargeDue,
]

list_schemas = {
    'default': list_columns,
    'take': {
        'default': list_columns_take
    },
    'cardiology': {
        'default': list_columns_specialist_teams
    },
    'respiratory': list_columns_specialist_teams
}

detail_columns = list_columns
