Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.01 KB | None | 0 0
  1. }
  2. class cls_css {
  3. public String target; //https://assetpool.healthwise.net/11.3/common/desktop/alpine.api/inc/style/main.css
  4. }
  5. class cls_javascript {
  6. public String target; //https://assetpool.healthwise.net/11.3/common/desktop/alpine.api/inc/control/healthwise.js
  7. }
  8. class cls_title {
  9. public String consumer; //Heart Failure
  10. public String englishConsumer; //Heart Failure
  11. }
  12. class cls_abstract {
  13. public String consumer;
  14. public String clinical;
  15. }
  16. class cls_legal {
  17. public String logo;
  18. public String disclaimer;
  19. public String termsOfUseUrl;
  20. public String privacyPolicyUrl;
  21. public String moreInformationUrl; //https://www.healthwise.org
  22. public String toLearnMoreHtml; //To learn more about Healthwise, visit <a href="https://www.healthwise.org">Healthwise.org</a>.
  23. public String yourUseOfThisInformationHtml;
  24. }
  25. class cls_credits {
  26. public cls_author author;
  27. public cls_primaryReviewers[] primaryReviewers;
  28. public cls_secondaryReviewers[] secondaryReviewers;
  29. }
  30. class cls_author {
  31. public String name; //Healthwise Staff
  32. }
  33. class cls_primaryReviewers {
  34. public String name; //Adam Husney, MD - Family Medicine
  35. public String profileId; //ua13981
  36. public String href; //https://content.healthwise.net/articles/ua13981/en-us?ContentVersion=11.3
  37. }
  38. class cls_secondaryReviewers {
  39. public String name; //Rakesh K. Pai, MD, FACC - Cardiology, Electrophysiology
  40. public String profileId; //abl2729
  41. public String href; //https://content.healthwise.net/articles/abl2729/en-us?ContentVersion=11.3
  42. }
  43. class cls_topics {
  44. public String id; //tb1488-sec
  45. public String lang; //en-us
  46. public String type; //HwNavigationSection
  47. public boolean navigable;
  48. public String html;
  49. }
  50. public static HealthwiseWrapper parse(String json){
  51. return (HealthwiseWrapper) System.JSON.deserialize(json, HealthwiseWrapper.class);
  52. }
  53.  
  54. static testMethod void testParse() {
  55. String json= '{"status":200,"versioning":{"X-HW-Version":"1"},"links":{"self":"https://content.healthwise.net/v1/articles/tb1488/en-us","localizations":{"en-us":"https://content.healthwise.net/articles/tb1488/en-us","es-us":"https://content.healthwise.net/articles/tb1488/es-us"},"metadata":{"en-us":"https://content.healthwise.net/metadata/tb1488/en-us","es-us":"https://content.healthwise.net/metadata/tb1488/es-us"}},"schema":"https://content.healthwise.net/v1/spec/schema.healthwise.api.item.json","data":{"id":"tb1488","version":"11.3","hash":"-1293733940","certifiedDate":"2016-11-15","lang":"en-us","docType":"caresupport","type":"caresupport","resources":{"css":[{"target":"https://assetpool.healthwise.net/11.3/common/desktop/alpine.api/inc/style/main.css"},{"target":"https://assetpool.healthwise.net/11.3/common/desktop/alpine.api/inc/style/main_ie8.css"},{"target":"https://assetpool.healthwise.net/11.3/common/desktop/alpine.api/inc/style/print.css","media":"print"}],"javascript":[{"target":"https://assetpool.healthwise.net/11.3/common/desktop/alpine.api/inc/control/healthwise.js"}],"inline":"n if (!window.org) var org = { healthwise: {u0027applicationu0027:{}} };n else if (!window.org.healthwise) org[u0022healthwiseu0022] = {u0027applicationu0027:{}};n org.healthwise.config = { n root: u0027https://assetpool.healthwise.net/11.3/common/desktop/alpine.api/u0027,n locale: u0027en-usu0027,n version: u002711.3u0027,n isoshg: falsen n };n org.healthwise.document = {};n org.healthwise.document.id = u0022tb1488u0022;n org.healthwise.document.section = u0022u0022;n org.healthwise.document.healthwise = true;n org.healthwise.document.title = u0022Heart Failureu0022; org.healthwise.document.family = u0022kbu0022;n org.healthwise.document.doctype = u0022CareSupportu0022; n org.healthwise.document.pagetype = u0022contentu0022; n "},"title":{"consumer":"Heart Failure","englishConsumer":"Heart Failure"},"abstract":{"consumer":"There are many steps you can take to feel better and improve your health if you have heart failure. Medicine and lifestyle changes can slow heart failure in some people. Learning all you can about your condition can help you get the best results from your treatment.","clinical":"There are many steps you can take to feel better and improve your health if you have heart failure. Medicine and lifestyle changes can slow heart failure in some people. Learning all you can about your condition can help you get the best results from your treatment."},"legal":{"logo":"u003cdiv class=u0022HwLogou0022u003eu003ca data-hwid=u0022support-abouthwu0022 href=u0022document/support-abouthw/support-abouthw-aboutu0022 data-document-type=u0022Supportu0022 data-document-href=u0022support-abouthwu0022 data-section-href=u0022support-abouthw-aboutu0022 data-articleId=u0022support-abouthwu0022 data-topicId=u0022support-abouthw-aboutu0022u003eu003cimg width=u0022112u0022 height=u002246u0022 class=u0022HwNoHcModeu0022 alt=u0022Click here to learn about Healthwiseu0022 src=u0022https://content.healthwise.net/resources/11.3/en-us/media/interface/hwlogo.pngu0022 data-resource-path=u0022media/interface/hwlogo.pngu0022 /u003eu003cimg width=u0022112u0022 height=u002246u0022 class=u0022HwHcModeu0022 alt=u0022Click here to learn about Healthwiseu0022 src=u0022https://content.healthwise.net/resources/11.3/en-us/media/interface/hwlogo_hc.pngu0022 data-resource-path=u0022media/interface/hwlogo_hc.pngu0022 /u003eu003c/au003eu003c/divu003e","disclaimer":"u003cdiv class=u0022HwDisclaimeru0022u003eu003cpu003e©2007-2017 Healthwise, Incorporated. Healthwise disclaims any liability for use of this information, which does not replace medical advice.u003c/pu003eu003c/divu003e","termsOfUseUrl":"https://www.healthwise.org/specialpages/legal/terms.aspx","privacyPolicyUrl":"https://www.healthwise.org/specialpages/legal/privacy.aspx","moreInformationUrl":"https://www.healthwise.org","toLearnMoreHtml":"To learn more about Healthwise, visit u003ca href=u0022https://www.healthwise.orgu0022u003eHealthwise.orgu003c/au003e.","yourUseOfThisInformationHtml":"Your use of this information means that you agree to the u003ca href=u0022https://www.healthwise.org/specialpages/legal/terms.aspxu0022u003eTerms of Useu003c/au003e and u003ca href=u0022https://www.healthwise.org/specialpages/legal/privacy.aspxu0022u003ePrivacy Policyu003c/au003e."},"credits":{"author":{"name":"Healthwise Staff "},"primaryReviewers":[{"name":"Adam Husney, MD - Family Medicine","profileId":"ua13981","href":"https://content.healthwise.net/articles/ua13981/en-us?ContentVersion=11.3"},{"name":"E. Gregory Thompson, MD - Internal Medicine","profileId":"zx1834","href":"https://content.healthwise.net/articles/zx1834/en-us?ContentVersion=11.3"},{"name":"Martin J. Gabica, MD - Family Medicine","profileId":"ts1200","href":"https://content.healthwise.net/articles/ts1200/en-us?ContentVersion=11.3"}],"secondaryReviewers":[{"name":"Rakesh K. Pai, MD, FACC - Cardiology, Electrophysiology","profileId":"abl2729","href":"https://content.healthwise.net/articles/abl2729/en-us?ContentVersion=11.3"}]},"pageTemplate":"u003carticleu003eu003cdiv role=u0022mainu0022 id=u0022HwContentWrapperu0022 class=u0022HwTypeCareSupport HwContentWrapper HwElementu0022u003eu003cdiv class=u0022HwCustomu0022 id=u0022HwCustomContentTopu0022u003eu003c/divu003eu003cdiv class=u0022HwContentHeaderu0022u003eu003cpu003eu003ca name=u0022topu0022 id=u0022Hwtopu0022u003eu003cspan class=u0022HwAccessibilityTextu0022u003eTop of the pageu003c/spanu003eu003c/au003eu003c/pu003eu003c/divu003eu003cdiv class=u0022HwContentTitleu0022u003eu003ch1 id=u0022HwContentTitleu0022u003eHeart Failureu003c/h1u003eu003c/divu003eu003cdiv class=u0022HwContentu0022 /u003eu003cdiv class=u0022HwCustomu0022 id=u0022HwCustomContentBottomu0022u003eu003c/divu003eu003cdiv class=u0022HwContentNavigation HwContentNavigationNoSectionsu0022u003eu003culu003eu003cli class=u0022HwContentNavigationNoneu0022u003eu003c/liu003eu003cli class=u0022HwContentNavigationTopu0022u003eu003ca href=u0022#topu0022u003eTop of Pageu003c/au003eu003c/liu003eu003cli class=u0022HwContentNavigationNoneu0022u003eu003c/liu003eu003c/ulu003eu003c/divu003eu003cdiv class=u0022HwContentInformation HwContentInformationNoSectionsu0022u003eu003cdiv class=u0022HwLastUpdatedu0022u003eu003cpu003eu003cspan class=u0022HwInfoLabelu0022u003eCurrent as of: u003c/spanu003eNovember 15, 2016u003c/pu003eu003c/divu003eu003cdiv class=u0022HwCreditsu0022u003eu003cpu003eu003cspan class=u0022HwInfoLabelu0022u003eAuthor: u003c/spanu003eu003ca data-hwid=u0022support-abouthwu0022 href=u0022document/support-abouthw/content-teamu0022 data-document-type=u0022Supportu0022 data-document-href=u0022support-abouthwu0022 data-section-href=u0022content-teamu0022u003eHealthwise Staff u003c/au003eu003c/pu003eu003cpu003eu003cspan class=u0022HwInfoLabelu0022u003eMedical Review: u003c/spanu003eu003cspan class=u0022HwInfoNameu0022u003eu003ca data-hwid=u0022ua13981u0022 href=u0022document/ua13981/ua13981-Introu0022 data-document-type=u0022Profileu0022 data-document-href=u0022ua13981u0022 data-section-href=u0022ua13981-Introu0022u003eAdam Husney, MD - Family Medicineu003c/au003eu003c/spanu003e u0026amp; u003cspan class=u0022HwInfoNameu0022u003eu003ca data-hwid=u0022zx1834u0022 href=u0022document/zx1834/zx1834-Introu0022 data-document-type=u0022Profileu0022 data-document-href=u0022zx1834u0022 data-section-href=u0022zx1834-Introu0022u003eE. Gregory Thompson, MD - Internal Medicineu003c/au003eu003c/spanu003e u0026amp; u003cspan class=u0022HwInfoNameu0022u003eu003ca data-hwid=u0022ts1200u0022 href=u0022document/ts1200/ts1200-Introu0022 data-document-type=u0022Profileu0022 data-document-href=u0022ts1200u0022 data-section-href=u0022ts1200-Introu0022u003eMartin J. Gabica, MD - Family Medicineu003c/au003eu003c/spanu003e u0026amp; u003cspan class=u0022HwInfoNameu0022u003eu003ca data-hwid=u0022abl2729u0022 href=u0022document/abl2729/abl2729-Introu0022 data-document-type=u0022Profileu0022 data-document-href=u0022abl2729u0022 data-section-href=u0022abl2729-Introu0022u003eRakesh K. Pai, MD, FACC - Cardiology, Electrophysiologyu003c/au003eu003c/spanu003eu003c/pu003eu003c/divu003eu003c/divu003eu003c/divu003eu003c/articleu003e","topics":[{"id":"tb1488-sec","lang":"en-us","type":"HwNavigationSection","navigable":true,"html":"u003csectionu003eu003cdiv class=u0022HwNavigationSectionu0022 id=u0022tb1488-secu0022u003eu003ca name=u0022tb1488-secu0022 data-articleId=u0022u0022 data-topicId=u0022u0022u003e u003c/au003eu003cdiv class=u0022HwCspNewspaperLayoutu0022u003eu003cp class=u0022HwCspTopicImageu0022u003eu003cimg alt=u0022u0022 height=u0022217u0022 src=u0022https://content.healthwise.net/resources/11.3/en-us/media/medical/hw/tb1488_csp.jpgu0022 width=u0022227u0022 class=u0022HwCspImageu0022 data-resource-path=u0022media/medical/hw/tb1488_csp.jpgu0022 /u003eu003c/pu003eu003cp class=u0022HwCspParagraphu0022 data-fingerprint=u0022e7138977u0022 data-fingerprint-exact=u00229f657b34u0022u003eThere are many steps you can take to feel better and improve your health if you have heart failure. Medicine and lifestyle changes can slow heart failure in some people.u003c/pu003eu003cp class=u0022HwCspParagraphu0022 data-fingerprint=u0022026854e4u0022 data-fingerprint-exact=u0022c7a20263u0022u003eLearning all you can about your condition can help you get the best results from your treatment.u003c/pu003eu003ch3 class=u0022HwCspSubtitleu0022 data-fingerprint=u00226defc419u0022 data-fingerprint-exact=u00220db3b90eu0022u003eWhat is heart failure and what causes it?u003c/h3u003eu003cp class=u0022HwCspParagraphu0022 data-fingerprint=u002252fad0b9u0022 data-fingerprint-exact=u00229818ebddu0022u003eHeart failure occurs when your heart does not pump as much blood as your body needs. Failure does not mean that the heart has stopped pumping. It means it is not pumping as well as it should.u003c/pu003eu003cp class=u0022HwCspParagraphu0022 data-fingerprint=u0022461bc2bau0022 data-fingerprint-exact=u0022b30506bdu0022u003e Anything that damages the heart and its ability to pump can lead to heart failure. This includes coronary artery disease, heart attack, high blood pressure, and heart valve problems.u003c/pu003eu003cp class=u0022HwCspParagraphu0022 data-fingerprint=u002248054229u0022 data-fingerprint-exact=u0022a1a125d3u0022u003eYou may not know you have heart failure until you have had it for years. This is because your heart can make up for not being able to pump well by getting bigger and beating faster. But it can only do this to a certain point.u003c/pu003eu003cp class=u0022HwCspParagraphu0022 data-fingerprint=u0022eb5b463cu0022 data-fingerprint-exact=u0022c59cfd3cu0022u003eIn time, your heart gets worn out. You have symptoms, such as feeling weak, lightheaded, and very tired. Fluid builds up in your lungs and other parts of your body. This causes you to be short of breath and have swelling in your body.u003c/pu003eu003ch3 class=u0022HwCspSubtitleu0022 data-fingerprint=u0022ab190622u0022 data-fingerprint-exact=u00223faef86cu0022u003eWhat are the types of heart failure?u003c/h3u003eu003cp class=u0022HwCspParagraphu0022 data-fingerprint=u0022012a8adfu0022 data-fingerprint-exact=u0022304a5069u0022u003eAsk your doctor what type of heart failure you have. Most people get heart failure because of a problem with the heartu0027s left lower chamber (ventricle).u003c/pu003eu003cul data-fingerprint=u00220e90f06fu0022 data-fingerprint-exact=u0022cf1041f7u0022u003eu003cli class=u0022HwCspListItemu0022u003eu003cdiv class=u0022HwCspListTextu0022u003eWhen the left ventricle cannot pump well, it is called u003cstrong class=u0022HwCspBoldu0022u003eheart failure with reduced ejection fractionu003c/strongu003e, or systolic heart failure.u003c/divu003eu003c/liu003eu003cli class=u0022HwCspListItemu0022u003eu003cdiv class=u0022HwCspListTextu0022u003eWhen the left ventricle cannot fill properly, it is called u003cstrong class=u0022HwCspBoldu0022u003eheart failure with preserved ejection fractionu003c/strongu003e, or diastolic heart failure. The ventricle pumps well, but it pumps out less blood than normal.u003c/divu003eu003c/liu003eu003c/ulu003eu003ch3 class=u0022HwCspSubtitleu0022 data-fingerprint=u00225e1c2848u0022 data-fingerprint-exact=u00225c81d17cu0022u003eWhat increases your risk for heart failure?u003c/h3u003eu003cp class=u0022HwCspParagraphu0022 data-fingerprint=u00228459ab50u0022 data-fingerprint-exact=u002242026243u0022u003eHeart failure is generally caused by another disease, such as CAD, heart attack, and high blood pressure. Anything that increases your risk for getting one of those diseases also adds to your risk, or is a risk factor, for heart failure. For example, diabetes increases your chance of having CAD, so it is also a risk factor for heart failure.u003c/pu003eu003cp class=u0022HwCspParagraphu0022 data-fingerprint=u0022bc5e2b7du0022 data-fingerprint-exact=u0022765df570u0022u003e Some risk factors exist because of who you are. Some result from your lifestyle choices. Others come from your environment. Some risks that you cannot control include:u003c/pu003eu003cul data-fingerprint=u0022a8bb6cdeu0022 data-fingerprint-exact=u00223ba1cbe9u0022u003eu003cli class=u0022HwCspListItemu0022u003eu003cdiv class=u0022HwCspListTextu0022u003eYour age. The risk of developing heart failure rises sharply as you age.u003c/divu003eu003c/liu003eu003cli class=u0022HwCspListItemu0022u003eu003cdiv class=u0022HwCspListTextu0022u003eYour sex. Overall, men are at a higher risk for heart failure than women. But this difference narrows as women get older.u003c/divu003eu003c/liu003eu003cli class=u0022HwCspListItemu0022u003eu003cdiv class=u0022HwCspListTextu0022u003eYour family history. If any of your close relatives have or had heart failure, you may have inherited a risk for heart failure.u003c/divu003eu003c/liu003eu003c/ulu003eu003cp class=u0022HwCspParagraphu0022 data-fingerprint=u0022390cead2u0022 data-fingerprint-exact=u0022545e4fedu0022u003eYou may be able to control many things that increase your risk for heart failure. Examples include:u003c/pu003eu003cul data-fingerprint=u00226766377au0022 data-fingerprint-exact=u00229f008f09u0022u003eu003cli class=u0022HwCspListItemu0022u003eu003cdiv class=u0022HwCspListTextu0022u003eUsing tobacco. Smoking increases your risk of heart disease.u003c/divu003eu003c/liu003eu003cli class=u0022HwCspListItemu0022u003eu003cdiv class=u0022HwCspListTextu0022u003e Drinking large amounts of alcohol, which can raise your blood pressure, trigger uneven heartbeats, and damage your heart muscle.u003c/divu003eu003c/liu003eu003cli class=u0022HwCspListItemu0022u003eu003cdiv class=u0022HwCspListTextu0022u003eNot getting enough physical activity. Lack of exercise can increase your risk of high blood pressure, high cholesterol, high blood sugar levels, blood clots, obesity, and stress.u003c/divu003eu003c/liu003eu003cli class=u0022HwCspListItemu0022u003eu003cdiv class=u0022HwCspListTextu0022u003ePoor eating habits, which can cause obesity and lead to high blood pressure, diabetes, and high cholesterol.u003c/divu003eu003c/liu003eu003c/ulu003eu003cp class=u0022HwCspParagraphu0022 data-fingerprint=u002210ccb479u0022 data-fingerprint-exact=u002274378432u0022u003eHaving a risk factor does not mean that you will develop heart disease. Even if you have no risk factors, you still may develop heart failure.u003c/pu003eu003ch3 class=u0022HwCspSubtitleu0022 data-fingerprint=u00224b137b5au0022 data-fingerprint-exact=u002262efeb6du0022u003eHow is heart failure treated?u003c/h3u003eu003cp class=u0022HwCspParagraphu0022 data-fingerprint=u002246f664efu0022 data-fingerprint-exact=u00222812079du0022u003eYour doctoru0027s goal is to relieve your symptoms and prevent more heart damage. Your doctor will also need to treat the problem that caused your heart failure. You will probably take several medicines to reduce blood pressure and fluid buildup and decrease your heartu0027s workload.u003c/pu003eu003cp class=u0022HwCspParagraphu0022 data-fingerprint=u0022417bfe67u0022 data-fingerprint-exact=u002258f21619u0022u003eIt is very important to take your medicines exactly as your doctor tells you to and to keep taking them. If you have any problems with the medicines, tell your doctor. You may be able to take different ones to get the same benefit.u003c/pu003eu003cp class=u0022HwCspParagraphu0022 data-fingerprint=u002257d37f70u0022 data-fingerprint-exact=u00227af3af59u0022u003eYour doctor will also recommend some lifestyle changes. Taking these steps can help you feel better and might help slow the progression of heart failure:u003c/pu003eu003cul data-fingerprint=u002269d6ff61u0022 data-fingerprint-exact=u00220bcb405bu0022u003eu003cli class=u0022HwCspListItemu0022u003eu003cdiv class=u0022HwCspListTextu0022u003eu003cstrong class=u0022HwCspBoldu0022u003eEat less sodiumu003c/strongu003e. This helps keep fluid from building up. It may help you feel better.u003c/divu003eu003c/liu003eu003cli class=u0022HwCspListItemu0022u003eu003cdiv class=u0022HwCspListTextu0022u003eu003cstrong class=u0022HwCspBoldu0022u003eGet regular exerciseu003c/strongu003e, which will help keep your heart healthy.u003c/divu003eu003c/liu003eu003cli class=u0022HwCspListItemu0022u003eu003cdiv class=u0022HwCspListTextu0022u003eu003cstrong class=u0022HwCspBoldu0022u003eLose weightu003c/strongu003e if you are overweight. Even small changes can make a difference.u003c/divu003eu003c/liu003eu003cli class=u0022HwCspListItemu0022u003eu003cdiv class=u0022HwCspListTextu0022u003eu003cstrong class=u0022HwCspBoldu0022u003eStop smokingu003c/strongu003e.u003c/divu003eu003c/liu003eu003cli class=u0022HwCspListItemu0022u003eu003cdiv class=u0022HwCspListTextu0022u003eu003cstrong class=u0022HwCspBoldu0022u003eLimit alcoholu003c/strongu003e. Ask your doctor how much, if any, is safe.u003c/divu003eu003c/liu003eu003cli class=u0022HwCspListItemu0022u003eu003cdiv class=u0022HwCspListTextu0022u003eu003cstrong class=u0022HwCspBoldu0022u003eControl your blood pressureu003c/strongu003e. Exercise, limit alcohol, and control stress to help keep your blood pressure in a healthy range. You may also need to take medicine.u003c/divu003eu003c/liu003eu003cli class=u0022HwCspListItemu0022u003eu003cdiv class=u0022HwCspListTextu0022u003eu003cstrong class=u0022HwCspBoldu0022u003eWatch your fluid intakeu003c/strongu003e if your doctor advises it.u003c/divu003eu003c/liu003eu003c/ulu003eu003cp class=u0022HwCspParagraphu0022 data-fingerprint=u00226ac0ca3fu0022 data-fingerprint-exact=u00222ffa2ae0u0022u003eAsk your doctor if a cardiac rehab program is right for you. Rehab can give you education and support that help you learn self-care and build new healthy habits, such as exercise.u003c/pu003eu003cdiv class=u0022HwCspImportantu0022u003eu003cp class=u0022HwCspParagraphu0022 data-fingerprint=u0022f0f98c37u0022 data-fingerprint-exact=u002253bc2e04u0022u003eHeart failure often gets worse over time and requires more treatment to manage symptoms and control complications. Take your medicines as prescribed, make some lifestyle changes, and work closely with your doctor. These give you the best chance to control heart failure and prevent complications.u003c/pu003eu003c/divu003eu003c/divu003eu003c/divu003eu003c/sectionu003e"}]}}';
  56. HealthwiseWrapper obj = parse(json);
  57. System.assert(obj != null);
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement